Skip to content

Commit

Permalink
bump line numbers by 1 to follow line numbering conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-ball-ctct committed Nov 20, 2023
1 parent cd54999 commit c675697
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,8 @@ class Generator {
for (const diag of diagnostics) {
console.error(
`Diagnostic err: ${diag['message']} in path ${JSON.stringify(diag['path'])} starting `+
`L${diag['range']['start']['line']} C${diag['range']['start']['character']}, ending `+
`L${diag['range']['end']['line']} C${diag['range']['end']['character']}`
`L${diag['range']['start']['line'] + 1} C${diag['range']['start']['character']}, ending `+
`L${diag['range']['end']['line'] + 1} C${diag['range']['end']['character']}`
);
}
throw err;
Expand Down

0 comments on commit c675697

Please sign in to comment.