Permalink
Browse files

Merge pull request #5 from pygy/patch-1

Handle the error callback.
  • Loading branch information...
grumdrig committed Mar 2, 2012
2 parents f92d09e + 654dcfd commit c18c46b01afa786e9fa1ba69fbf3d18015ffd770
Showing with 4 additions and 1 deletion.
  1. +4 −1 sqlite.js
View
@@ -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);
+ }
}

0 comments on commit c18c46b

Please sign in to comment.