Make attempt to read from an invalid DB column a fatal error
This commit is contained in:
parent
30b5c4686e
commit
6199742986
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue