Fix invalid exception handling 96/188096/1
authorseolheui, kim <s414.kim@samsung.com>
Fri, 31 Aug 2018 08:12:01 +0000 (17:12 +0900)
committerseolheui, kim <s414.kim@samsung.com>
Fri, 31 Aug 2018 08:12:01 +0000 (17:12 +0900)
Change-Id: I66dca4e1c879a1043f8c771ee8334df2cb8f1a8c
Signed-off-by: seolheui, kim <s414.kim@samsung.com>
server/internal-encryption.cpp

index 05f756e..b762cc2 100644 (file)
@@ -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()