This commit is contained in:
Zengtudor 2024-09-17 13:44:07 +08:00
parent ff9248c42c
commit d561f2eb54
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
#include <exception>
#include <stdexcept>
#include <tools.hpp>
#include <string_view>
@ -44,7 +45,7 @@ int main(const int argc,const char *argv[]){
zt::print(argv1,"\n");
}catch(std::runtime_error &e){
}catch(const std::exception &e){
zt::eprint("Caught an error because:\n","\t",NAME_VALUE(e.what()),"\n");
}catch(...){
zt::eprint("Caught an unknown error,closing...\n");