Skip to content

Commit

Permalink
♻️ Updated crash error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikrk committed Feb 19, 2024
1 parent 7ae7c92 commit eccb9d4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/client/derive/fuzz_test_executor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,8 @@ pub fn fuzz_test_executor(input: TokenStream) -> TokenStream {

if let Err(e) = ix.check(acc_before, acc_after, data).map_err(|e| e.with_origin(Origin::Instruction(self.to_context_string()))) {
eprintln!(
"Custom check after the {} instruction did not pass with the error message: {}",
self.to_context_string(), e
);
eprintln!("Instruction data submitted to the instruction were:"); // TODO data does not implement Debug trait -> derive Debug trait on InitializeIx and automaticaly implement conversion from Initialize to InitializeIx
"CRASH DETECTED! Custom check after the {} instruction did not pass!",
self.to_context_string());
panic!("{}", e)
}

Expand Down

0 comments on commit eccb9d4

Please sign in to comment.