mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
head: strip os error suffix from stdout write error message (#12121)
This commit is contained in:
@@ -162,7 +162,7 @@ impl HeadOptions {
|
||||
fn wrap_in_stdout_error(err: io::Error) -> io::Error {
|
||||
io::Error::new(
|
||||
err.kind(),
|
||||
translate!("head-error-writing-stdout", "err" => err),
|
||||
translate!("head-error-writing-stdout", "err" => uucore::error::strip_errno(&err)),
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -896,7 +896,7 @@ fn test_write_to_dev_full() {
|
||||
.pipe_in_fixture(INPUT)
|
||||
.set_stdout(dev_full)
|
||||
.fails()
|
||||
.stderr_contains("error writing 'standard output': No space left on device");
|
||||
.stderr_is("head: error writing 'standard output': No space left on device\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user