From 0b07ddabf25a9249e333f1a83e3aeb97157e17bd Mon Sep 17 00:00:00 2001 From: msojocs Date: Fri, 1 Sep 2023 10:15:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AD=97=E7=AC=A6=E4=B8=B2=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E6=B2=A1=E6=9C=89=E8=BE=93=E5=87=BA=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/wcc.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wcc.cpp b/src/wcc.cpp index b488611..26cc242 100644 --- a/src/wcc.cpp +++ b/src/wcc.cpp @@ -500,6 +500,11 @@ int main(int argc, const char **argv) } // main - 55 } + catch (const std::string &e) + { + // TODO: 把string异常换成exception + std::cerr << e << '\n'; + } catch (const std::exception &e) { std::cerr << e.what() << '\n';