Skip to content

Commit

Permalink
cleaner exit if asty/go errors (no panic)
Browse files Browse the repository at this point in the history
  • Loading branch information
JalonSolov committed Aug 22, 2024
1 parent 0ce8ab6 commit 3cf8b98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.v
Original file line number Diff line number Diff line change
Expand Up @@ -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 { '' }
Expand Down

0 comments on commit 3cf8b98

Please sign in to comment.