Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #5 from pygy/patch-1

Handle the error callback.
  • Loading branch information...
commit c18c46b01afa786e9fa1ba69fbf3d18015ffd770 2 parents f92d09e + 654dcfd
@grumdrig authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 sqlite.js
View
5 sqlite.js
@@ -135,8 +135,11 @@ function SQLTransactionSync(db, txCallback, errCallback, successCallback) {
db.removeListener("rollback", unroll);
- if (!this.rolledBack && successCallback)
+ if (!this.rolledBack && successCallback) {
successCallback(this);
+ } else if (errCallback) {
+ errCallback(this);
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.