mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 479543 - mozStorageConnection::Close should use NS_ERROR instead of NS_WARNING to complain about unfinalized statements
r=sdwilsh
This commit is contained in:
parent
d7ec419480
commit
a824b114b7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user