From 990126cde03428509191bed132f38050034d342e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 19 Nov 2013 12:08:03 +0000 Subject: Shorter error message --- src/libexpr/primops.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/libexpr/primops.cc') diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index bf913468d505..9c9d202eda63 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -262,8 +262,7 @@ static void prim_abort(EvalState & state, Value * * args, Value & v) static void prim_throw(EvalState & state, Value * * args, Value & v) { PathSet context; - throw ThrownError(format("user-thrown exception: %1%") % - state.coerceToString(*args[0], context)); + throw ThrownError(format("%1%") % state.coerceToString(*args[0], context)); } -- cgit 1.4.1