We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 345f2cc + 28576de commit eda7caeCopy full SHA for eda7cae
2 files changed
src/common/validation.rs
@@ -25,7 +25,7 @@ pub fn get_all_utilities<T: Args>(
25
26
/// Prints a "utility not found" error and exits
27
pub fn not_found(util: &OsStr) -> ! {
28
- println!("{}: function/utility not found", util.maybe_quote());
+ eprintln!("{}: function/utility not found", util.maybe_quote());
29
process::exit(1);
30
}
31
tests/test_util_name.rs
@@ -195,9 +195,9 @@ fn util_invalid_name_invalid_command() {
195
.unwrap();
196
let output = child.wait_with_output().unwrap();
197
assert_eq!(output.status.code(), Some(1));
198
- assert_eq!(output.stderr, b"");
+ assert_eq!(output.stdout, b"");
199
assert_eq!(
200
- output.stdout,
+ output.stderr,
201
b"definitely_invalid: function/utility not found\n"
202
);
203
0 commit comments