Add the error log 76/155776/1
authorSeungha Son <seungha.son@samsung.com>
Mon, 16 Oct 2017 06:17:00 +0000 (15:17 +0900)
committerSeungha Son <seungha.son@samsung.com>
Mon, 16 Oct 2017 06:39:33 +0000 (15:39 +0900)
Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I5244219a8dbd5c5ab3ec5358ef71cae5d0ec1af8

src/notification_noti.c

index da57e723370f4bb4eb15d67a8fdc47187cd6913a..9a4f269d49d27165b885f40f2b8572e5de8fc45e 100755 (executable)
@@ -598,6 +598,11 @@ static int _get_notification(char *query_where, notification_h noti)
                __notification_noti_populate_from_stmt(stmt, noti);
                ret = NOTIFICATION_ERROR_NONE;
        } else {
+               if (ret == SQLITE_DONE)
+                       NOTIFICATION_DBG("No valid record found");
+               else
+                       NOTIFICATION_ERR("sqlite3_step failed [%d][%s]", ret,
+                                       sqlite3_errmsg(db));
                ret = NOTIFICATION_ERROR_FROM_DB;
        }