fix bug using cerr to output the exception
This commit is contained in:
parent
ed44a375b2
commit
c2ebfc38a0
@ -95,13 +95,13 @@ int main()
|
||||
|
||||
return 0;
|
||||
}catch(const std::exception &e){
|
||||
zt::print(
|
||||
zt::eprint(
|
||||
"Caught an error because:\n",
|
||||
"\t",NAME_VALUE(e.what()),"\n"
|
||||
"Closing\n"
|
||||
);
|
||||
}catch(...){
|
||||
zt::print(
|
||||
zt::eprint(
|
||||
"Caught an unknown error :\n",
|
||||
"Closing\n"
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user