exception: Add exception_msg helper

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
2025-05-13 09:36:22 +02:00
parent 4c499f2905
commit be273d4263
2 changed files with 18 additions and 1 deletions

View File

@@ -39,7 +39,7 @@ int main(int, const char *[])
return 0;
}
catch (const std::exception& ex) {
std::cerr << ex.what() << " FAIL\n";
std::cerr << stdex::exception_msg(ex) << " FAIL\n";
return 1;
}
}