From a6d5d743d74cd2df1ff38d7c75ea741e61639b74 Mon Sep 17 00:00:00 2001 From: "seolheui, kim" Date: Fri, 31 Aug 2018 17:12:01 +0900 Subject: [PATCH] Fix invalid exception handling Change-Id: I66dca4e1c879a1043f8c771ee8334df2cb8f1a8c Signed-off-by: seolheui, kim --- server/internal-encryption.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/internal-encryption.cpp b/server/internal-encryption.cpp index 05f756e..b762cc2 100644 --- a/server/internal-encryption.cpp +++ b/server/internal-encryption.cpp @@ -197,7 +197,7 @@ void stopSystemdUnits() -1, "(o)", "(ss)", unit.c_str(), "flush").get("(o)", &job); INFO(SINK, "Waiting for job: " + std::string(job)); if (!watch.waitForJob(job)) - throw runtime::Exception("Stopping unit: " + unit + " failed"); + ERROR(SINK, "Stopping unit: " + unit + " failed"); }; for (const std::string &unit : preprocessUnits) { @@ -226,7 +226,7 @@ void showProgressUI(const std::string type) INFO(SINK, "Waiting for job: " + std::string(job)); if (!watch.waitForJob(job)) - throw runtime::Exception("Starting unit: " + unit + " failed"); + ERROR(SINK, "Starting unit: " + unit + " failed"); } unsigned int getOptions() -- 2.34.1