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;
|
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"
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user