From e5655dc7db94fb3f4aac14c9d208c280ad04bc95 Mon Sep 17 00:00:00 2001 From: JalonSolov Date: Wed, 21 Aug 2024 20:14:44 -0400 Subject: [PATCH] cleaner exit if asty/go errors (no panic) (#121) --- main.v | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.v b/main.v index 000ca3d..771381f 100644 --- a/main.v +++ b/main.v @@ -193,7 +193,10 @@ fn create_json(subdir string, test_name string) { } fn main() { - ensure_asty_is_installed()! + ensure_asty_is_installed() or { + eprintln(err) + exit(1) + } mut subdir := 'tests' mut go_file_name := if os.args.len > 1 { os.args[1] } else { '' }