mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v.eval: consistency in commit hash shown on panic (#16227)
This commit is contained in:
parent
c5ee33b7aa
commit
219079e3a6
@ -231,8 +231,9 @@ fn (e Eval) error(msg string) {
|
||||
}
|
||||
|
||||
fn (e Eval) panic(s string) {
|
||||
commithash := unsafe { tos5(&char(C.V_CURRENT_COMMIT_HASH)) }
|
||||
eprintln('V panic: $s')
|
||||
eprintln('V hash: ${@VHASH}')
|
||||
eprintln('V hash: $commithash')
|
||||
e.print_backtrace()
|
||||
exit(1)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user