Bug 479543 - mozStorageConnection::Close should use NS_ERROR instead of NS_WARNING to complain about unfinalized statements

r=sdwilsh
This commit is contained in:
Ryan VanderMeulen 2009-02-22 00:11:57 -05:00
parent d7ec419480
commit a824b114b7

View File

@ -251,7 +251,7 @@ mozStorageConnection::Close()
while (stmt = sqlite3_next_stmt(mDBConn, stmt)) {
char *msg = PR_smprintf("SQL statement '%s' was not finalized",
sqlite3_sql(stmt));
NS_WARNING(msg);
NS_ERROR(msg);
PR_smprintf_free(msg);
}
#endif
@ -264,7 +264,7 @@ mozStorageConnection::Close()
int srv = sqlite3_close(mDBConn);
if (srv != SQLITE_OK)
NS_WARNING("sqlite3_close failed. There are probably outstanding statements that are listed above!");
NS_ERROR("sqlite3_close failed. There are probably outstanding statements that are listed above!");
mDBConn = NULL;
return ConvertResultCode(srv);