[tracker] libtracker-data: More clear error messages when they come from SQLite



commit 1b7782e0a29eec91c2aa05e9771e56261706a834
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]