From a9f279b76c831bacc68b0f6ea15e4a85855d403e Mon Sep 17 00:00:00 2001 From: Sungbae Yoo Date: Mon, 1 Oct 2018 16:59:05 +0900 Subject: [PATCH] Fix catch to get all exceptions This is for fixing a SVACE issue Signed-off-by: Sungbae Yoo Change-Id: I44f6d6a39a4fbd83b1f3290aae48a188b083749f --- tools/cli/ode-admin-cli.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cli/ode-admin-cli.cpp b/tools/cli/ode-admin-cli.cpp index 7c8247b..377a59e 100644 --- a/tools/cli/ode-admin-cli.cpp +++ b/tools/cli/ode-admin-cli.cpp @@ -464,7 +464,7 @@ static inline int luks(bool sync, else std::cerr << "Wrong arguments (format|open|close|wait)" << std::endl; return -1; - } catch (const std::runtime_error& e) { + } catch (const std::exception& e) { std::cerr << e.what() << std::endl; return -1; } -- 2.7.4