Shorter error message

This commit is contained in:
Eelco Dolstra 2013-11-19 12:08:03 +00:00
parent af94a70ba6
commit 990126cde0

View file

@ -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));
}