From e34c8aa1a9173703f06fb3ac4c146d991c2659dc Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Tue, 17 Sep 2024 13:59:54 +0800 Subject: [PATCH] update --- src/repstr/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/repstr/main.cpp b/src/repstr/main.cpp index ba2ca9f..b247f5c 100644 --- a/src/repstr/main.cpp +++ b/src/repstr/main.cpp @@ -45,12 +45,11 @@ int main(const int argc,const char *argv[]){ zt::print(argv1,"\n"); - return 0; - }catch(const std::exception &e){ zt::eprint("Caught an error because:\n","\t",NAME_VALUE(e.what()),"\n"); + return -1; }catch(...){ zt::eprint("Caught an unknown error,closing...\n"); + std::rethrow_exception(std::current_exception()); } - return -1; } \ No newline at end of file