Skip to content

Commit

Permalink
restore eval.panic()
Browse files Browse the repository at this point in the history
  • Loading branch information
Spydr06 committed Oct 5, 2023
1 parent d38c04e commit 099ad21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vlib/v/eval/eval.v
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,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: ${@VCURRENTHASH}')
eprintln('V hash: ${commithash}')
e.print_backtrace()
exit(1)
}
Expand Down

0 comments on commit 099ad21

Please sign in to comment.