summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/inspector/front-end/Database.js
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/inspector/front-end/Database.js')
-rw-r--r--Source/WebCore/inspector/front-end/Database.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/WebCore/inspector/front-end/Database.js b/Source/WebCore/inspector/front-end/Database.js
index e4bafea..685c288 100644
--- a/Source/WebCore/inspector/front-end/Database.js
+++ b/Source/WebCore/inspector/front-end/Database.js
@@ -77,17 +77,22 @@ WebInspector.Database.prototype = {
getTableNames: function(callback)
{
- function sortingCallback(names)
+ function sortingCallback(error, names)
{
- callback(names.sort());
+ if (!error)
+ callback(names.sort());
}
DatabaseAgent.getDatabaseTableNames(this._id, sortingCallback);
},
executeSql: function(query, onSuccess, onError)
{
- function callback(success, transactionId)
+ function callback(error, success, transactionId)
{
+ if (error) {
+ onError(error);
+ return;
+ }
if (!success) {
onError(WebInspector.UIString("Database not found."));
return;