* Print a more useful error message in case of an invalid derivation
binding.
This commit is contained in:
		
							parent
							
								
									c4ac2a164a
								
							
						
					
					
						commit
						a520b1cbc3
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -181,7 +181,12 @@ Expr primDerivation(EvalState & state, Expr args) | ||||||
|         startNest(nest, lvlVomit, format("processing attribute `%1%'") % key); |         startNest(nest, lvlVomit, format("processing attribute `%1%'") % key); | ||||||
| 
 | 
 | ||||||
|         Strings ss; |         Strings ss; | ||||||
|  |         try { | ||||||
|             processBinding(state, value, ne, ss); |             processBinding(state, value, ne, ss); | ||||||
|  |         } catch (Error & e) { | ||||||
|  |             throw Error(format("while processing derivation binding `%1%': %2%") | ||||||
|  |                 % key % e.msg()); | ||||||
|  |         } | ||||||
| 
 | 
 | ||||||
|         /* The `args' attribute is special: it supplies the
 |         /* The `args' attribute is special: it supplies the
 | ||||||
|            command-line arguments to the builder. */ |            command-line arguments to the builder. */ | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue