Skip to content

Commit

Permalink
Add missing if.
Browse files Browse the repository at this point in the history
  • Loading branch information
dranger003 committed Mar 16, 2024
1 parent 7a8a471 commit b93a0d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,9 @@ bool gpt_params_parse_ex(int argc, char ** argv, gpt_params & params) {
#endif // LOG_DISABLE_LOGS
}

throw std::invalid_argument("error: unknown argument: " + arg);
if (invalid_param) {
throw std::invalid_argument("error: unknown argument: " + arg);
}
}
if (invalid_param) {
throw std::invalid_argument("error: invalid parameter for argument: " + arg);
Expand Down

0 comments on commit b93a0d4

Please sign in to comment.