Skip to content

Commit

Permalink
Fix interpolation from Civet upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
edemaine committed Dec 9, 2024
1 parent 25ce894 commit 0422f04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/cli.civet
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,10 @@ export function repl(args: string[], options: Options)
// Unwrap ParseErrors to first error
if (error as ParseErrors).errors?
error = (error as ParseErrors).errors[0]
console.log """
#{input.split('\n')[0...(error as ParseError).line].join '\n'}
#{' '.repeat (error as ParseError).column - 1}^ #{(error as ParseError).header}
"""
console.log ```
${input.split('\n')[0...(error as ParseError).line].join '\n'}
${' '.repeat (error as ParseError).column - 1}^ ${(error as ParseError).header}
```
else
console.error error

Expand Down

0 comments on commit 0422f04

Please sign in to comment.