From dd8a10948195f231a6a9eb652e3f208813904ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 21 Feb 2020 10:36:13 -0500 Subject: refactor: remove unneeded ErrorKinds (#3936) --- std/encoding/yaml/error.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'std/encoding/yaml') diff --git a/std/encoding/yaml/error.ts b/std/encoding/yaml/error.ts index 62be8b477..7f305ccf2 100644 --- a/std/encoding/yaml/error.ts +++ b/std/encoding/yaml/error.ts @@ -5,14 +5,12 @@ import { Mark } from "./mark.ts"; -const { DenoError, ErrorKind } = Deno; - -export class YAMLError extends DenoError { +export class YAMLError extends Error { constructor( message = "(unknown reason)", protected mark: Mark | string = "" ) { - super(ErrorKind.Other, `${message} ${mark}`); + super(`${message} ${mark}`); this.name = this.constructor.name; } -- cgit v1.2.3