fix bug using cerr to output the exception

This commit is contained in:
Zengtudor 2024-09-19 10:24:00 +08:00
parent ed44a375b2
commit c2ebfc38a0
1 changed files with 2 additions and 2 deletions

View File

@ -95,13 +95,13 @@ int main()
return 0; return 0;
}catch(const std::exception &e){ }catch(const std::exception &e){
zt::print( zt::eprint(
"Caught an error because:\n", "Caught an error because:\n",
"\t",NAME_VALUE(e.what()),"\n" "\t",NAME_VALUE(e.what()),"\n"
"Closing\n" "Closing\n"
); );
}catch(...){ }catch(...){
zt::print( zt::eprint(
"Caught an unknown error :\n", "Caught an unknown error :\n",
"Closing\n" "Closing\n"
); );