Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/bin/coreutils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use std::cmp;
use std::ffi::OsString;
use std::io::{self, Write};
use std::process;
use uucore::Args;
use uucore::{Args, error::strip_errno};

const VERSION: &str = env!("CARGO_PKG_VERSION");

Expand Down Expand Up @@ -44,7 +44,7 @@ Currently defined functions:
if let Err(e) = writeln!(io::stdout(), "{s}")
Comment thread
oech3 marked this conversation as resolved.
&& e.kind() != io::ErrorKind::BrokenPipe
{
let _ = writeln!(io::stderr(), "coreutils: {e}");
let _ = writeln!(io::stderr(), "coreutils: {}", strip_errno(&e));
process::exit(1);
}
}
Expand Down Expand Up @@ -95,7 +95,7 @@ fn main() {
if let Err(e) = writeln!(out, "{util}")
&& e.kind() != io::ErrorKind::BrokenPipe
{
let _ = writeln!(io::stderr(), "coreutils: {e}");
let _ = writeln!(io::stderr(), "coreutils: {}", strip_errno(&e));
process::exit(1);
}
}
Expand All @@ -105,7 +105,7 @@ fn main() {
if let Err(e) = writeln!(io::stdout(), "coreutils {VERSION} (multi-call binary)")
&& e.kind() != io::ErrorKind::BrokenPipe
{
let _ = writeln!(io::stderr(), "coreutils: {e}");
let _ = writeln!(io::stderr(), "coreutils: {}", strip_errno(&e));
process::exit(1);
}
process::exit(0);
Expand Down
Loading