Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Prev Previous commit
Next Next commit
Put println message in panic
  • Loading branch information
ucover committed Sep 29, 2021
commit e86084ff524d23cdfc16612b684e5fdb741019f3
14 changes: 2 additions & 12 deletions frame/benchmarking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -849,22 +849,12 @@ macro_rules! impl_bench_name_tests {
$module::<$test>::[< test_benchmark_ $name >] ()
}) {
Err(err) => {
println!(
"{}: {:?}",
stringify!($name),
err,
);
assert!(false);
panic!("{}: {:?}", stringify!($name), err);
},
Ok(Err(err)) => {
match err {
$crate::BenchmarkError::Stop(err) => {
println!(
"{}: {:?}",
stringify!($name),
err,
);
assert!(false);
panic!("{}: {:?}", stringify!($name), err);
},
$crate::BenchmarkError::Override(_) => {
// This is still considered a success condition.
Expand Down