mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
allow passing message to IDBRequestError
This commit is contained in:
parent
43d430fc98
commit
482b5f4d22
@ -41,10 +41,10 @@ export class IDBError extends StorageError {
|
||||
}
|
||||
|
||||
export class IDBRequestError extends IDBError {
|
||||
constructor(request) {
|
||||
constructor(request, message = "IDBRequest failed") {
|
||||
const source = request?.source;
|
||||
const cause = request.error;
|
||||
super(`IDBRequest failed`, source, cause);
|
||||
super(message, source, cause);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user