Make attempt to read from an invalid DB column a fatal error

This commit is contained in:
Dan Stillman 2014-11-19 03:02:36 -05:00
parent 30b5c4686e
commit 6199742986

View file

@ -701,9 +701,10 @@ Zotero.DBConnection.prototype.queryAsync = function (sql, params, options) {
return target.getResultByName(name);
}
catch (e) {
Zotero.debug((new Error).stack, 2);
Zotero.debug("DB column '" + name + "' not found", 2);
return undefined;
Zotero.debug(e, 1);
var msg = "DB column '" + name + "' not found";
Zotero.debug(msg, 1);
throw new Error(msg);
}
}
};