From fc706d38ee031ac7e8146271f5d0b629ac0645df Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Mon, 11 May 2020 04:02:22 +0300 Subject: [PATCH] Fix SimpleError not logging properly --- backend/src/SimpleError.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/SimpleError.ts b/backend/src/SimpleError.ts index ad5a6833..550bbbd3 100644 --- a/backend/src/SimpleError.ts +++ b/backend/src/SimpleError.ts @@ -1,10 +1,10 @@ import util from "util"; -export class SimpleError { +export class SimpleError extends Error { public message: string; constructor(message: string) { - this.message = message; + super(message); } [util.inspect.custom](depth, options) {