From 9a942c52c567822d7dccc81c71c694e18d210b2a Mon Sep 17 00:00:00 2001 From: Divlo Date: Thu, 7 Apr 2022 10:14:52 +0200 Subject: [PATCH] style: fix linting issue --- src/UnauthorizedError.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UnauthorizedError.ts b/src/UnauthorizedError.ts index d2a11d2..a1fa0cd 100644 --- a/src/UnauthorizedError.ts +++ b/src/UnauthorizedError.ts @@ -4,7 +4,7 @@ export class UnauthorizedError extends Error { constructor(code: string, error: { message: string }) { super(error.message) - this.message = error.message + this.name = 'UnauthorizedError' this.inner = error this.data = { message: this.message,