allow passing message to IDBRequestError
This commit is contained in:
parent
43d430fc98
commit
482b5f4d22
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue