Skip to content

Commit

Permalink
Merge pull request #395 from hatoo/deadline-help
Browse files Browse the repository at this point in the history
More helpful message for deadline
  • Loading branch information
hatoo authored Feb 1, 2024
2 parents 357960e + 8176dee commit 09b3491
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ pub enum ClientError {
InvalidUri(#[from] http::uri::InvalidUri),
#[error("timeout")]
Timeout,
#[error("deadline")]
#[error("aborted due to deadline")]
Deadline,
#[error(transparent)]
UrlGeneratorError(#[from] UrlGeneratorError),
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ struct Opts {
n_http2_parallel: usize,
#[clap(
help = "Duration of application to send requests. If duration is specified, n is ignored.
When the duration is reached, ongoing requests are aborted and counted as \"aborted due to deadline\"
Examples: -z 10s -z 3m.",
short = 'z'
)]
Expand Down

0 comments on commit 09b3491

Please sign in to comment.