Shorter error message
This commit is contained in:
parent
af94a70ba6
commit
990126cde0
|
@ -262,8 +262,7 @@ static void prim_abort(EvalState & state, Value * * args, Value & v)
|
||||||
static void prim_throw(EvalState & state, Value * * args, Value & v)
|
static void prim_throw(EvalState & state, Value * * args, Value & v)
|
||||||
{
|
{
|
||||||
PathSet context;
|
PathSet context;
|
||||||
throw ThrownError(format("user-thrown exception: %1%") %
|
throw ThrownError(format("%1%") % state.coerceToString(*args[0], context));
|
||||||
state.coerceToString(*args[0], context));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue