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