3
0
Fork 0
forked from mirrors/nixpkgs

stdenv checkMeta: throw -> trace

- tracing seems annoying enough
- we get errors for all packages instead of aborting on the first one
- easier to differentiate from unwanted packages (broken, unfree, etc.)
This commit is contained in:
Vladimír Čunát 2017-12-05 15:15:43 +01:00 committed by Graham Christensen
parent 76090f5dc3
commit 76bf375a16
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -126,7 +126,7 @@ let
'';
throwEvalHelp = { reason , errormsg ? "" }:
throw (''
(if reason != "unknown-meta" then throw else (x : builtins.trace x true)) (''
Package ${attrs.name or "«name-missing»"} in ${pos_str} ${errormsg}, refusing to evaluate.
'' + ((builtins.getAttr reason remediation) attrs));