From f2c3fc519190b021f0bb3b66f58d0fe7fc40b0e7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 30 Jun 2009 13:28:29 +0000 Subject: * 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. --- src/libexpr/primops.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libexpr/primops.cc') 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)); } -- cgit 1.4.1