Skip to content

Commit

Permalink
Properly override toString in CompileError
Browse files Browse the repository at this point in the history
  • Loading branch information
esarbanis committed Dec 12, 2017
1 parent e3b5f52 commit b1909dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/CompileError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
}
Expand Down

0 comments on commit b1909dc

Please sign in to comment.