Catch TizenPlatformConfig exception in NSMountLogic 25/232425/2
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Mon, 4 May 2020 10:53:07 +0000 (12:53 +0200)
committerDariusz Michaluk <d.michaluk@samsung.com>
Wed, 13 May 2020 14:34:25 +0000 (14:34 +0000)
It may happen if there are some leftovers in /run/user/. Until now an
unknown exception was logged.

Change-Id: I02bbe251bd4ee094965810f8eeb228be78d7081a

src/common/nsmount-logic.cpp

index 83165398e86a568bf2428481858114a3de2f9383..2ab042916d894646f0e179490030f4880c1a6df1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
+ *  Copyright (c) 2017 - 2020 Samsung Electronics Co., Ltd All Rights Reserved
  *
  *  Contact: Rafal Krypa <r.krypa@samsung.com>
  *
@@ -32,6 +32,7 @@
 #include <mount-namespace.h>
 #include <worker.h>
 #include <dpl/serialization.h>
+#include <tzplatform-config.h>
 
 #include <nsmount-logic.h>
 
@@ -150,6 +151,8 @@ bool NSMountLogic::check()
         LogError("Worker connection failed: " << e.DumpToString());
     } catch (const FS::Exception::Base &e) {
         LogError("Filesystem exception: " << e.DumpToString());
+    } catch (const TizenPlatformConfig::Exception::Base& e) {
+        LogError("TizenPlatformConfig exception: " << e.DumpToString());
     }
     return false;
 }