mirror of
https://github.com/fluencelabs/aquavm
synced 2024-12-04 23:20:18 +00:00
print log on erorrs (#68)
This commit is contained in:
parent
e5244db6a1
commit
d43b5454fa
@ -70,6 +70,8 @@ fn set_last_error<'i>(
|
||||
e: Rc<ExecutionError>,
|
||||
tetraplet: Option<SecurityTetraplet>,
|
||||
) {
|
||||
log::warn!("call failed with an error: {}", e);
|
||||
|
||||
let instruction = format!("{}", call);
|
||||
let last_error = LastErrorDescriptor::new(e, instruction, tetraplet);
|
||||
exec_ctx.last_error = Some(last_error);
|
||||
|
@ -31,6 +31,7 @@ impl<'i> super::ExecutableInstruction<'i> for Xor<'i> {
|
||||
Err(e) if is_catchable_by_xor(&e) => {
|
||||
exec_ctx.subtree_complete = true;
|
||||
exec_ctx.last_error_could_be_set = true;
|
||||
log::warn!("xor caught an error: {}", e);
|
||||
|
||||
self.1.execute(exec_ctx, trace_ctx)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user