From 90b0776b23335b8fc27746e3228d09b632d06c1e Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Tue, 17 Sep 2024 13:51:12 +0800 Subject: [PATCH] update --- src/repstr/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/repstr/main.cpp b/src/repstr/main.cpp index 3cb1e7f..d0fe47b 100644 --- a/src/repstr/main.cpp +++ b/src/repstr/main.cpp @@ -47,7 +47,9 @@ int main(const int argc,const char *argv[]){ }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; } } \ No newline at end of file