Skip to content

Commit

Permalink
improving error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaly Tomilov committed Mar 5, 2015
1 parent ed97010 commit 5dc3d95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ module.exports = function (cn, options) {

tx.exec = function (cb) {
if (_local.db) {
throw new Error('Cannot execute an unfinished transaction');
throw new Error("Previous call to tx.exec() hasn't finished.");
}
var t_data, t_reason, success;
return $p(function (resolve, reject) {
Expand Down

0 comments on commit 5dc3d95

Please sign in to comment.