www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 995369bc9b4b48558e57b2dff4c2831587817f15
parent 7135b9f5a75391ede755e284e41af807e9345d2f
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 12 Aug 2013 03:57:00 -0400

Remove unnecessary catch()

Diffstat:
Mchrome/content/zotero/xpcom/db.js | 10----------
1 file changed, 0 insertions(+), 10 deletions(-)

diff --git a/chrome/content/zotero/xpcom/db.js b/chrome/content/zotero/xpcom/db.js @@ -944,16 +944,6 @@ Zotero.DBConnection.prototype.rowQueryAsync = function (sql, params) { return this.queryAsync(sql, params) .then(function (rows) { return rows.length ? rows[0] : false; - }) - .catch(function (e) { - if (e.errors && e.errors[0]) { - var eStr = e + ""; - eStr = eStr.indexOf("Error: ") == 0 ? eStr.substr(7): e; - throw new Error(eStr + ' [QUERY: ' + sql + '] [ERROR: ' + e.errors[0].message + ']'); - } - else { - throw e; - } }); };