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

change error printing format

This commit is contained in:
Alvydas Vitkauskas 2019-08-03 00:21:58 +03:00 committed by Alexander Medvednikov
parent 910f350a26
commit 69084b0c57

View File

@ -550,8 +550,7 @@ fn (s mut Scanner) scan() ScanRes {
fn (s &Scanner) error(msg string) {
file := s.file_path.all_after('/')
println('panic: $file:${s.line_nr + 1}')
println(msg)
println('$file:${s.line_nr + 1} panic: $msg')
exit(1)
}