Skip to content
Myr

Improve StepRequired error message

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Piyush Rungta · committed by David Peter · parent 7d66d2b · Browse files · 1 file+5 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−1 removed

  • other:+5 added−1 removed

1 file+5 added−1 removed

modified:src/hyperfine/error.rs+5 added-1 removed
37 unmodified lines
38 ParameterScanError::ParseDecimalError(ref e) => e.description(),39 ParameterScanError::EmptyRange => "Empty parameter range",40 ParameterScanError::TooLarge => "Parameter range is too large",41 ParameterScanError::ZeroStep => "Zero is not a valid parameter step",42 ParameterScanError::StepRequired => "Step is required when range bounds are floats",42 ParameterScanError::StepRequired => {43 "A step size is required when the range bounds are \44 floating point numbers. The step size can be specified \45 with the '--parameter-step-size' parameter"46 }47 }48 }49}50
20 unmodified lines