mirror of
https://github.com/fluencelabs/aquavm
synced 2025-06-27 13:41:32 +00:00
Print instruction on trace errors (#201)
This commit is contained in:
@ -122,12 +122,5 @@ pub fn is_interpreter_succeded(result: &RawAVMOutcome) -> bool {
|
||||
}
|
||||
|
||||
pub fn check_error(result: &RawAVMOutcome, error: impl ToErrorCode + ToString) -> bool {
|
||||
println!(
|
||||
"{} == {} || {} == {}",
|
||||
result.ret_code,
|
||||
error.to_error_code(),
|
||||
result.error_message,
|
||||
error.to_string()
|
||||
);
|
||||
result.ret_code == error.to_error_code() && result.error_message == error.to_string()
|
||||
}
|
||||
|
Reference in New Issue
Block a user