From 75c1458e8a1fe1567a7fcaaf45f90135f61497c4 Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Tue, 17 Sep 2024 13:52:03 +0800 Subject: [PATCH] update --- src/repstr/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/repstr/main.cpp b/src/repstr/main.cpp index d0fe47b..ba2ca9f 100644 --- a/src/repstr/main.cpp +++ b/src/repstr/main.cpp @@ -45,11 +45,12 @@ 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"); - return -1; } + return -1; } \ No newline at end of file