Skip to content

Commit

Permalink
Reinstated the default error handler.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleydavis committed Feb 15, 2022
1 parent 72926fc commit 26f07de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ export function compile(input: string, onError?: OnErrorFn, options?: ICompilerO
if (onError) {
onError(err);
}
else {
console.error(`${err.line}:${err.column}: Error: ${err.msg}`);
}
errors += 1;
});

Expand Down

0 comments on commit 26f07de

Please sign in to comment.