Skip to content

Commit

Permalink
cleaner exit if asty/go errors (no panic) (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
JalonSolov authored Aug 22, 2024
1 parent 0ce8ab6 commit e5655dc
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 e5655dc

Please sign in to comment.