Skip to content

Commit 4274628

Browse files
committed
Log result when initialization failure
1 parent a179438 commit 4274628

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test_case.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ impl<T: TestCase> TestCaseRunner<T> {
8181

8282
let f = framework
8383
.as_mut()
84-
.expect("Framework not correctly initialized");
84+
.with_context(|| format!("Framework not correctly initialized, result {result:?}"))?;
8585

8686
if let Err(_) | Ok(Err(_)) = result {
8787
if let Err(e) = f.dump_log() {

0 commit comments

Comments
 (0)