Skip to content

Commit

Permalink
test: propagate errors during tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Beastwick18 committed Jun 22, 2024
1 parent 4d9d9d2 commit 2a192f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ impl App {
ctx.notifications.clear();
}
if !ctx.errors.is_empty() {
if TEST {
return Err(ctx.errors.join("\n\n").into());
}
ctx.errors
.clone()
.into_iter()
Expand Down

0 comments on commit 2a192f2

Please sign in to comment.