Skip to content
Myr

Change error message

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

authored by David Peter · committed by David Peter · parent e88fa27 · Browse files · 2 files+3 added−3 removed
This commit

State

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

Diff stats

2 files+3 added−3 removed

  • tests:+2 added−2 removed
  • other:+1 added−1 removed

2 files+3 added−3 removed

modified:src/error.rs+1 added-1 removed
51 unmodified lines
52 #[error("Failed to parse '--shell <command>' expression as command line: {0}")]53 ShellParseError(shell_words::ParseError),54 #[error("Unknown output policy '{0}'. Use './{0}' to output to a file named '{0}'.")]55 UnknownOutputPolicy(String),56 #[error("File containing stdin data '{0}' does not exist")]56 #[error("The file '{0}' specified as '--input' does not exist")]57 StdinDataFileDoesNotExist(String),58}
modified:tests/integration_tests.rs+2 added-2 removed
229 unmodified lines
230#[test]231fn fails_if_invalid_stdin_data_file_provided() {232 hyperfine()233 .arg("--runs=1")234 .arg("--input=example_stdin_data_invalid")234 .arg("--input=example_non_existent_file.txt")235 .arg("--show-output")236 .arg("cat")237 .assert()238 .failure()239 .stderr(predicate::str::contains(240 "File containing stdin data 'example_stdin_data_invalid' does not exist",240 "The file 'example_non_existent_file.txt' specified as '--input' does not exist",241 ));242}243244#[test]
103 unmodified lines