1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +02:00

* Don't show trace information by default (`--show-trace' to enable).

NixOS evaluation errors in particular look intimidating and
  generally aren't very useful.  Ideally the builtins.throw messages
  should be self-contained.
This commit is contained in:
Eelco Dolstra 2009-06-30 13:28:29 +00:00
parent a2fc3a53ba
commit f2c3fc5191
6 changed files with 21 additions and 3 deletions

View file

@ -206,7 +206,7 @@ static Expr prim_abort(EvalState & state, const ATermVector & args)
static Expr prim_throw(EvalState & state, const ATermVector & args)
{
PathSet context;
throw ThrownError(format("user-thrown exception: `%1%'") %
throw ThrownError(format("user-thrown exception: %1%") %
evalString(state, args[0], context));
}