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:
parent
910f350a26
commit
69084b0c57
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user