mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: print backtrace only in debug mode
This commit is contained in:
@@ -717,7 +717,9 @@ fn (p mut Parser) check(expected TokenKind) {
|
||||
s := 'expected `${expected.str()}` but got `${p.strtok()}`'
|
||||
p.next()
|
||||
println('next token = `${p.strtok()}`')
|
||||
print_backtrace()
|
||||
if p.pref.is_debug {
|
||||
print_backtrace()
|
||||
}
|
||||
p.error(s)
|
||||
}
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user