Colored error line/column numbers as well
This commit is contained in:
parent
dfa64f3c3d
commit
2a7111e700
@ -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 +=
|
||||
|
Reference in New Issue
Block a user