From 2a192f27d538b3cd5509f32e00681288ef81ce03 Mon Sep 17 00:00:00 2001 From: Brad Culwell Date: Sat, 22 Jun 2024 06:50:35 +0000 Subject: [PATCH] test: propagate errors during tests --- src/app.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app.rs b/src/app.rs index 1d6961d..0bec4d4 100644 --- a/src/app.rs +++ b/src/app.rs @@ -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()