Bug 462047 - nsPlacesDBFlush.js should have an error handler.

This changeset adds the handleError method from mozIStorageStatementCallback to
nsPlacesDBFlush so we can report errors to the error console if they occur.
r=dietrich
This commit is contained in:
Shawn Wilsher 2008-10-28 17:44:35 -04:00
Родитель ad910f4456
Коммит 2ebdec533a
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -164,6 +164,12 @@ nsPlacesDBFlush.prototype = {
//////////////////////////////////////////////////////////////////////////////
//// mozIStorageStatementCallback
handleError: function DBFlush_handleError(aError)
{
Components.utils.reportError("Async statement execution returned with '" +
aError.result + "', '" + aError.message + "'");
},
handleCompletion: function DBFlush_handleCompletion(aReason)
{
if (aReason == Ci.mozIStorageStatementCallback.REASON_FINISHED) {