Skip to content

Commit

Permalink
chore: reply usage while the target field is empty in /ping command
Browse files Browse the repository at this point in the history
  • Loading branch information
AH-dark committed Mar 23, 2024
1 parent 49a9402 commit 15e2328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust-components/network-functions-handler/src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ pub(crate) async fn ping_handler(
target: String,
) -> anyhow::Result<()> {
if target.is_empty() {
send_error_message!(bot, message, "Target is empty");
send_error_message!(bot, message, "Usage: /ping <target>");
return Err(anyhow::anyhow!("Target is empty"));
}

Expand Down

0 comments on commit 15e2328

Please sign in to comment.