From 1b6b70eaff95fe20921a93ce16e21434f97078f8 Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Tue, 17 Sep 2024 13:25:01 +0800 Subject: [PATCH] update --- src/repstr/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/repstr/main.cpp b/src/repstr/main.cpp index 129ca8d..9604a91 100644 --- a/src/repstr/main.cpp +++ b/src/repstr/main.cpp @@ -45,6 +45,8 @@ int main(const int argc,const char *argv[]){ zt::print(argv1,"\n"); }catch(std::runtime_error &e){ - zt::eprint("caught an error because:\n","\te.what(): ",e.what(),"\n"); + zt::eprint("Caught an error because:\n","\te.what(): ",e.what(),"\n"); + }catch(...){ + zt::eprint("Caught an unknown error,closing...\n"); } } \ No newline at end of file