Skip to content

Commit

Permalink
refactor(ant-cli): improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
b-zee committed Jan 6, 2025
1 parent 463b706 commit 4c864b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ant-cli/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ pub async fn handle_subcommand(opt: Opt) -> Result<()> {
None => {
// If no subcommand is given, default to clap's error behaviour.
Opt::command()
.error(ErrorKind::InvalidSubcommand, "No subcommand given")
.error(ErrorKind::MissingSubcommand, "Please provide a subcommand")
.exit();
}
}
Expand Down

0 comments on commit 4c864b7

Please sign in to comment.