diff --git a/vlib/v/eval/eval.v b/vlib/v/eval/eval.v index c45a8f15db..822fbfa2e0 100644 --- a/vlib/v/eval/eval.v +++ b/vlib/v/eval/eval.v @@ -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) }