Skip to content

Commit

Permalink
Improve panics msgs in stylus_benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoximenes committed Dec 10, 2024
1 parent c062978 commit 7ad53a3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions arbitrator/tools/stylus_benchmark/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ fn check_result(req_type: u32, req_data: &Vec<u8>) {
};

match req_type {
0 => return, // userSuccess
1 => panic!("ErrExecutionReverted"), // userRevert
2 => panic!("ErrExecutionReverted"), // userFailure
3 => panic!("ErrOutOfGas"), // userOutOfInk
4 => panic!("ErrDepth"), // userOutOfStack
_ => panic!("ErrExecutionReverted"), // userUnknown
0 => return,
1 => panic!("ErrExecutionReverted user revert"),
2 => panic!("ErrExecutionReverted user failure"),
3 => panic!("ErrOutOfGas user out of ink"),
4 => panic!("ErrDepth user out of stack"),
_ => panic!("ErrExecutionReverted user unknown"),
}
}

Expand Down

0 comments on commit 7ad53a3

Please sign in to comment.