style: fix linting issue

This commit is contained in:
Divlo 2022-04-07 10:14:52 +02:00
parent dbb363747d
commit 9a942c52c5
No known key found for this signature in database
GPG Key ID: 8F9478F220CE65E9

View File

@ -4,7 +4,7 @@ export class UnauthorizedError extends Error {
constructor(code: string, error: { message: string }) { constructor(code: string, error: { message: string }) {
super(error.message) super(error.message)
this.message = error.message this.name = 'UnauthorizedError'
this.inner = error this.inner = error
this.data = { this.data = {
message: this.message, message: this.message,