lib/std: display any caught error in tests

Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
This commit is contained in:
Pierre Curto
2023-06-24 21:49:38 +02:00
committed by Christoffer Lerno
parent dcfbca076f
commit 1dccd6af79

View File

@@ -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]");