From 1dccd6af79ec3a2436954644eb9273dc2c727409 Mon Sep 17 00:00:00 2001 From: Pierre Curto Date: Sat, 24 Jun 2023 21:49:38 +0200 Subject: [PATCH] lib/std: display any caught error in tests Signed-off-by: Pierre Curto --- lib/std/core/runtime.c3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/core/runtime.c3 b/lib/std/core/runtime.c3 index e9d7d04ec..a1157ce01 100644 --- a/lib/std/core/runtime.c3 +++ b/lib/std/core/runtime.c3 @@ -62,7 +62,7 @@ fn bool TestRunner.run(TestRunner* runner) { if (catch err = runner.test_fns[i]()) { - io::printn("[failed]"); + io::printfn("[failed] Failed due to: %s", err); continue; } io::printn("[ok]");