diff --git a/index.js b/index.js index 6b185117..b41e4a95 100644 --- a/index.js +++ b/index.js @@ -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) {