Skip to content

Commit

Permalink
Fix calling cordova.plugin.storage.failQuery function from native code
Browse files Browse the repository at this point in the history
  • Loading branch information
davibe committed May 26, 2012
1 parent d7b79f5 commit ccd4365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/src/org/apache/cordova/Storage.java
Expand Up @@ -175,7 +175,7 @@ public void executeSql(String query, String[] params, String tx_id) {
System.out.println("Storage.executeSql(): Error=" + ex.getMessage());

// Send error message back to JavaScript
this.sendJavascript("cordova.require('cordova/plugin/android/storage').fail('" + ex.getMessage() + "','" + tx_id + "');");
this.sendJavascript("cordova.require('cordova/plugin/android/storage').failQuery('" + ex.getMessage() + "','" + tx_id + "');");
}
}

Expand Down

0 comments on commit ccd4365

Please sign in to comment.