git.delta.rocks / jrsonnet / refs/commits / 5a22275beecf

difftreelog

fix error stringifies value

Yaroslav Bolyukin2022-04-20parent: #69d179b.patch.diff
in: master

1 file changed

modifiedcrates/jrsonnet-evaluator/src/evaluate/mod.rsdiffbeforeafterboth
643 ErrorStmt(e) => push_frame(643 ErrorStmt(e) => push_frame(
644 CallLocation::new(loc),644 CallLocation::new(loc),
645 || "error statement".to_owned(),645 || "error statement".to_owned(),
646 || throw!(RuntimeError(IStr::try_from(evaluate(context, e)?)?,)),646 || throw!(RuntimeError(evaluate(context, e)?.to_string()?,)),
647 )?,647 )?,
648 IfElse {648 IfElse {
649 cond,649 cond,