1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: fix error messages and add checker tests

* checker: fix error messages
* tests: fix command and ignore defect output
This commit is contained in:
Daniel Däschle
2020-04-10 10:59:07 +02:00
committed by GitHub
parent 74ac9ef195
commit 0f11d883fa
8 changed files with 91 additions and 11 deletions

View File

@@ -95,10 +95,8 @@ pub fn formatted_error(kind string /*error or warn*/, emsg string, filepath stri
}
continue
}
for i in 0..pos.len {
underline := '~'.repeat(pos.len)
pointerline << if emanager.support_color { term.bold(term.blue(underline)) } else { underline }
}
underline := '~'.repeat(pos.len)
pointerline << if emanager.support_color { term.bold(term.blue(underline)) } else { underline }
break
}
clines << ' ' + pointerline.join('')