Log unexpected sqlite3 errors.

This commit is contained in:
JoelKatz
2013-02-03 11:29:37 -08:00
parent 4fa726f2d3
commit 6f50404013

View File

@@ -69,7 +69,11 @@ bool SqliteDatabase::executeSQL(const char* sql, bool fail_ok)
}
else
{
assert((rc != SQLITE_BUSY) && (rc != SQLITE_LOCKED));
if ((rc != SQLITE_BUSY) && (rc != SQLITE_LOCKED))
{
cLog(lsFATAL) << "SQLite returns error " << rc << ": " << sqlite3_errmsg(mConnection);
assert(false);
}
mMoreRows = false;
if (!fail_ok)