Set name for Zotero.DBConnection.TimeoutError

Fixes failing timeout test in dbTest.js.
This commit is contained in:
Abe Jellinek 2025-07-23 16:52:30 -04:00 • committed by Dan Stillman
parent 97dbcc6870
commit 9f038891ef

View file

@ -1496,4 +1496,9 @@ Zotero.DBConnection.prototype._debug = function (str, level) {
Zotero.debug(prefix + str, level);
}
Zotero.DBConnection.TimeoutError = class extends Error {};
Zotero.DBConnection.TimeoutError = class TimeoutError extends Error {
constructor(message) {
super(message);
this.name = 'TimeoutError';
}
};