diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-06-30T13·28+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-06-30T13·28+0000 |
commit | f2c3fc519190b021f0bb3b66f58d0fe7fc40b0e7 (patch) | |
tree | 3f63dc0097d73ec82250a77574703e744eb03c81 /src/libexpr | |
parent | a2fc3a53ba87d3688dae0554bfdb2fe3fb3dbf2a (diff) |
* 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.
Diffstat (limited to 'src/libexpr')
-rw-r--r-- | src/libexpr/primops.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index 34e7e80525c5..016e6abdb29c 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -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)); } |