diff options
-rw-r--r-- | xbmc/dbwrappers/sqlitedataset.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xbmc/dbwrappers/sqlitedataset.cpp b/xbmc/dbwrappers/sqlitedataset.cpp index 4643370de8..5ad10c8813 100644 --- a/xbmc/dbwrappers/sqlitedataset.cpp +++ b/xbmc/dbwrappers/sqlitedataset.cpp @@ -271,6 +271,8 @@ int SqliteDatabase::setErr(int err_code, const char * qry) { } else { ss << "Undefined SQLite error " << err_code; } + if (conn) + ss << " (" << sqlite3_errmsg(conn) << ")"; ss << "\nQuery: " << qry; error = ss.str(); return err_code; |