[tracker/tracker-0.10] libtracker-data: More clear error messages when they come from SQLite
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] libtracker-data: More clear error messages when they come from SQLite
- Date: Wed, 2 Mar 2011 14:47:27 +0000 (UTC)
commit 8b61e172fbe5e7f8feac1f502154ce883271df24
Author: Philip Van Hoof <philip codeminded be>
Date: Tue Mar 1 16:43:13 2011 +0100
libtracker-data: More clear error messages when they come from SQLite
src/libtracker-data/tracker-db-interface-sqlite.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-data/tracker-db-interface-sqlite.c b/src/libtracker-data/tracker-db-interface-sqlite.c
index e5d4915..8b7e046 100644
--- a/src/libtracker-data/tracker-db-interface-sqlite.c
+++ b/src/libtracker-data/tracker-db-interface-sqlite.c
@@ -1146,9 +1146,9 @@ execute_stmt (TrackerDBInterface *interface,
g_set_error (error,
TRACKER_DB_INTERFACE_ERROR,
errno != ENOSPC ? TRACKER_DB_QUERY_ERROR : TRACKER_DB_NO_SPACE,
- "%s%s%s%s",
+ "%s%s%s%s]",
sqlite3_errmsg (interface->db),
- errno != 0 ? " (" : "",
+ errno != 0 ? " (strerror of errno (not necessarily related): " : "",
errno != 0 ? g_strerror (errno) : "",
errno != 0 ? ")" : "");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]