From d561f2eb54e9fc95171f3973d63344d085da71a2 Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Tue, 17 Sep 2024 13:44:07 +0800 Subject: [PATCH] update --- src/repstr/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/repstr/main.cpp b/src/repstr/main.cpp index d292286..3cb1e7f 100644 --- a/src/repstr/main.cpp +++ b/src/repstr/main.cpp @@ -1,3 +1,4 @@ +#include #include #include #include @@ -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");