change error printing format

pull/1444/head
Alvydas Vitkauskas 2019-08-03 00:21:58 +03:00 committed by Alexander Medvednikov
parent 910f350a26
commit 69084b0c57
1 changed files with 1 additions and 2 deletions

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)
}