mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-26 13:15:36 +00:00
fix AuthError object
This commit is contained in:
parent
9366de14ef
commit
eba51066d9
@ -19,7 +19,12 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function AuthError(problem) {
|
function AuthError(problem) {
|
||||||
Error.call(this, problem.title);
|
const error = Error.call(this, problem.title);
|
||||||
|
|
||||||
|
this.name = 'AuthError';
|
||||||
|
this.message = error.message;
|
||||||
|
this.stack = error.stack;
|
||||||
|
|
||||||
Object.assign(this, problem);
|
Object.assign(this, problem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user