mirror of
https://github.com/zotero/zotero.git
synced 2026-10-03 02:21:49 +00:00
Set name for Zotero.DBConnection.TimeoutError
Fixes failing timeout test in dbTest.js.
This commit is contained in:
parent
97dbcc6870
commit
9f038891ef
1 changed files with 6 additions and 1 deletions
|
|
@ -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';
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue