Skip to content

Commit 0d4378d

Browse files
committed
Use validation::not_found to print error message and exit
1 parent 2cf731b commit 0d4378d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/bin/coreutils.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ fn main() {
7070
uucore::set_utility_is_second_arg();
7171
args.next()
7272
} else {
73-
eprintln!("coreutils: I was probably called as symlink to false");
74-
process::exit(1);
73+
validation::not_found(&OsString::from(binary_as_util));
7574
};
7675

7776
// 0th argument equals util name?

0 commit comments

Comments
 (0)