From: Seungha Son Date: Mon, 16 Oct 2017 06:17:00 +0000 (+0900) Subject: Add the error log X-Git-Tag: submit/tizen/20171018.011846~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=014f624aeb0dd79c86b115cf279a2c0f06d21ee1;p=platform%2Fcore%2Fapi%2Fnotification.git Add the error log Signed-off-by: Seungha Son Change-Id: I5244219a8dbd5c5ab3ec5358ef71cae5d0ec1af8 --- diff --git a/src/notification_noti.c b/src/notification_noti.c index da57e723..9a4f269d 100755 --- a/src/notification_noti.c +++ b/src/notification_noti.c @@ -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; }