aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/expect/src/lib.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/expect/src/lib.rs b/crates/expect/src/lib.rs
index 08d0eafdf..1a1302cec 100644
--- a/crates/expect/src/lib.rs
+++ b/crates/expect/src/lib.rs
@@ -106,7 +106,7 @@ impl Runtime {
106 rt.help_printed = true; 106 rt.help_printed = true;
107 107
108 let help = if print_help { HELP } else { "" }; 108 let help = if print_help { HELP } else { "" };
109 panic!( 109 println!(
110 "\n 110 "\n
111error: expect test failed{} 111error: expect test failed{}
112 --> {}:{}:{} 112 --> {}:{}:{}
@@ -122,7 +122,9 @@ Actual:
122---- 122----
123", 123",
124 updated, expect.file, expect.line, expect.column, help, expected, actual 124 updated, expect.file, expect.line, expect.column, help, expected, actual
125 ) 125 );
126 // Use resume_unwind instead of panic!() to prevent a backtrace, which is unnecessary noise.
127 std::panic::resume_unwind(Box::new(()));
126 } 128 }
127} 129}
128 130