Colored error line/column numbers as well

This commit is contained in:
Sasha Koshka 2022-08-11 13:16:59 -05:00
parent dfa64f3c3d
commit 2a7111e700
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ func (err Error) Error () (formattedMessage string) {
// print information about the location of the mistake
if err.width > 0 {
formattedMessage += fmt.Sprint (
" ", err.Location.row + 1,
" \033[34m", err.Location.row + 1,
":", err.Location.column + 1)
}
formattedMessage +=