[Privilege] Modify error message handling 15/151115/3
authorYunjin Lee <yunjin-.lee@samsung.com>
Wed, 20 Sep 2017 02:04:19 +0000 (11:04 +0900)
committerYunjin Lee <yunjin-.lee@samsung.com>
Wed, 20 Sep 2017 05:14:56 +0000 (05:14 +0000)
Change-Id: I6f7b2ceaf8eef7c04c9a1c430809d9ffcf0cf9fa
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
src/Tizen.Security/Tizen.Security/Privilege.cs

index 6e2d606..77129dd 100755 (executable)
@@ -196,8 +196,7 @@ namespace Tizen.Security
         {
             if (err == (int)ErrorCode.None)
                 return;
-            string errorMessage = string.Format("[{0}] {1}", ErrorFacts.GetErrorMessage(err), msg);
-            Tizen.Log.Error(Interop.Privilege.LogTag, errorMessage);
+            Tizen.Log.Error(Interop.Privilege.LogTag, "[" + ErrorFacts.GetErrorMessage(err) + "] " + msg);
             switch (err)
             {
                 case (int)ErrorCode.InvalidParameter: