add error message for TIZEN_ERROR_NONE 76/55876/1 submit/tizen/20151230.043246
authorDongyoung Kim <dydot1.kim@samsung.com>
Wed, 30 Dec 2015 03:04:28 +0000 (12:04 +0900)
committerDongyoung Kim <dydot1.kim@samsung.com>
Wed, 30 Dec 2015 03:05:16 +0000 (12:05 +0900)
Change-Id: Ice3a3de7a2642a3738dcf784e5a271d84995e31b

src/tizen_error.c

index 223a075..b8e8c11 100644 (file)
@@ -633,7 +633,10 @@ char *get_error_message(int err_code)
        char *tmp = NULL;
        memset(msg, 0x00, sizeof(msg));
 
-       if (err_code >= TIZEN_ERROR_OWNER_DEAD && err_code < 0) {
+
+       if (err_code == 0) {
+               strncpy(msg, "Successful", strlen("Successful"));
+       } else if (err_code >= TIZEN_ERROR_OWNER_DEAD && err_code < 0) {
                if ((~err_code + 1) == -ENOSYS) {
                        strncpy(msg, "Invalid operation", strlen("Invalid operation"));
                } else {