From b1909dc19bf6e8fe541af0acc1d0116299456f40 Mon Sep 17 00:00:00 2001 From: Efthymis Sarmpanis Date: Wed, 13 Dec 2017 00:00:37 +0100 Subject: [PATCH] Properly override toString in CompileError --- src/utils/CompileError.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/CompileError.ts b/src/utils/CompileError.ts index 1af9b39c2f..16dabc3c13 100644 --- a/src/utils/CompileError.ts +++ b/src/utils/CompileError.ts @@ -24,7 +24,7 @@ export default class CompileError extends Error { this.frame = getCodeFrame(template, line, column); } - toString() { + public toString = () => { return `${this.message} (${this.loc.line}:${this.loc.column})\n${this .frame}`; }