Fix bad error message in Darwin chroots
This commit is contained in:
		
							parent
							
								
									a9faa7bbce
								
							
						
					
					
						commit
						f696af0fab
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -2505,7 +2505,9 @@ void DerivationGoal::runChild()
 | 
			
		|||
            sandboxProfile += "(allow file-read* file-write* process-exec\n";
 | 
			
		||||
            for (auto & i : dirsInChroot) {
 | 
			
		||||
                if (i.first != i.second)
 | 
			
		||||
                    throw SysError(format("can't map '%1%' to '%2%': mismatched impure paths not supported on darwin"));
 | 
			
		||||
                    throw Error(format(
 | 
			
		||||
                        "can't map '%1%' to '%2%': mismatched impure paths not supported on Darwin")
 | 
			
		||||
                        % i.first % i.second);
 | 
			
		||||
 | 
			
		||||
                string path = i.first;
 | 
			
		||||
                struct stat st;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue