Skip to content
Myr

Update error message

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

authored by sharkdp · committed by David Peter · parent d1cd30b · Browse files · 1 file+3 added−4 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+3 added−4 removed

  • other:+3 added−4 removed

1 file+3 added−4 removed

modified:src/main.rs+3 added-4 removed
31 unmodified lines
32 mean_shell_spawning_time(&options.shell, options.output_style, options.show_output)?;3334 let mut timing_results = vec![];3536 // Check if preparation command is equal to command length or should be mentioned only once36 if let Some(preparation_command) = &options.preparation_command {38 if commands.len() != preparation_command.len() && preparation_command.len() > 1 {37 if preparation_command.len() > 1 && commands.len() != preparation_command.len() {38 error(40 "--prepare option should be provided only 1 time or N times equal to number of \41 commands to benchmark",39 "The '--prepare' option has to be provided just once or N times, where N is the \40 number of benchmark commands.",41 );42 }43 }44
164 unmodified lines