Skip to content

Commit

Permalink
Fixed internal error on bad subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
grunt-lucas committed Sep 4, 2023
1 parent 89e6293 commit 7bf05a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ static void parseSubcommand(PtContext &ctx, int argc, char *const *argv)
ctx.subcommand = Subcommand::COMPILE_SECONDARY;
}
else {
internalerror("cli_parser::parseSubcommand unrecognized Subcommand");
fatalerror_porytilesprefix(ctx.err, "unrecognized subcommand `" + subcommand + "', try `porytiles --help' for usage information");
}
}

Expand Down

0 comments on commit 7bf05a5

Please sign in to comment.