Give a better error message if a path in build-sandbox-paths is invalid
This commit is contained in:
		
							parent
							
								
									0babc4ff31
								
							
						
					
					
						commit
						e4bdd49022
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1874,8 +1874,12 @@ void DerivationGoal::startBuilder()
 | 
			
		|||
        /* Add the closure of store paths to the chroot. */
 | 
			
		||||
        PathSet closure;
 | 
			
		||||
        for (auto & i : dirsInChroot)
 | 
			
		||||
            try {
 | 
			
		||||
                if (worker.store.isInStore(i.second))
 | 
			
		||||
                    worker.store.computeFSClosure(worker.store.toStorePath(i.second), closure);
 | 
			
		||||
            } catch (Error & e) {
 | 
			
		||||
                throw Error(format("while processing ‘build-sandbox-paths’: %s") % e.what());
 | 
			
		||||
            }
 | 
			
		||||
        for (auto & i : closure)
 | 
			
		||||
            dirsInChroot[i] = i;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue