зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
ad910f4456
Коммит
2ebdec533a
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче