From f706e8ca06be0729cf4edce63e8808891c4305e2 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 6 Jan 2025 07:33:03 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: JalonSolov --- vlib/builtin/js/builtin.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/builtin/js/builtin.v b/vlib/builtin/js/builtin.v index bad2c32f520e96..5c2fd4676d7044 100644 --- a/vlib/builtin/js/builtin.v +++ b/vlib/builtin/js/builtin.v @@ -9,7 +9,7 @@ fn (a any) toString() // panic prints an error message, then exits the process with exit code of 1. @[noreturn] pub fn panic(s string) { - eprintln('V panic: ${s}') + eprintln('V panic: ' + s) eprintln(js_stacktrace()) exit(1) } @@ -17,7 +17,7 @@ pub fn panic(s string) { // panic_n prints an error message, followed by the given number, then exits the process with exit code of 1. @[noreturn] pub fn panic_n(s string, n i64) { - eprintln('V panic: ${s}') + eprintln('V panic: ' + s) eprintln(js_stacktrace()) exit(1) }