This commit is contained in:
Zengtudor 2024-09-17 13:59:54 +08:00
parent 75c1458e8a
commit e34c8aa1a9
1 changed files with 2 additions and 3 deletions

View File

@ -45,12 +45,11 @@ int main(const int argc,const char *argv[]){
zt::print(argv1,"\n"); zt::print(argv1,"\n");
return 0;
}catch(const std::exception &e){ }catch(const std::exception &e){
zt::eprint("Caught an error because:\n","\t",NAME_VALUE(e.what()),"\n"); zt::eprint("Caught an error because:\n","\t",NAME_VALUE(e.what()),"\n");
return -1;
}catch(...){ }catch(...){
zt::eprint("Caught an unknown error,closing...\n"); zt::eprint("Caught an unknown error,closing...\n");
std::rethrow_exception(std::current_exception());
} }
return -1;
} }