Skip to content

Commit

Permalink
log fatal exit points
Browse files Browse the repository at this point in the history
  • Loading branch information
onyx-and-iris committed Jul 9, 2024
1 parent 8d9e70b commit ad91a7f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/vmrcli.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@ int main(int argc, char *argv[])
vflag = true;
break;
case '?':
log_warn("unknown option -- '%c'\n"
"Try .\\vmrcli.exe -h for more information.",
optopt);
log_fatal("unknown option -- '%c'\n"
"Try .\\vmrcli.exe -h for more information.",
optopt);
exit(EXIT_FAILURE);
case ':':
log_warn("missing argument for option -- '%c'\n"
"Try .\\vmrcli.exe -h for more information.",
optopt);
log_fatal("missing argument for option -- '%c'\n"
"Try .\\vmrcli.exe -h for more information.",
optopt);
exit(EXIT_FAILURE);
case 'h':
[[fallthrough]];
Expand Down

0 comments on commit ad91a7f

Please sign in to comment.