From 176a8634553e3e5dc7d20ce73dd2492ef4beaa52 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Tue, 14 Jun 2016 16:14:43 +0900 Subject: [PATCH] add try catch --- test/nm_frame.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/nm_frame.cpp b/test/nm_frame.cpp index 2f02f4d..bdeaf4b 100644 --- a/test/nm_frame.cpp +++ b/test/nm_frame.cpp @@ -28,6 +28,7 @@ public: } }; int main() + try { try { Sample s; @@ -39,4 +40,7 @@ int main() } ErrorSample es; es.gen(); +} catch (std::exception& e) { + printf("err %s\n", e.what()); + return 1; }