Skip to content
Closed
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
4 changes: 2 additions & 2 deletions src/uu/nice/src/nice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use windows_sys::Win32::System::Threading::{
use uucore::translate;
use uucore::{
display::Quotable,
error::{UResult, UUsageError, set_exit_code},
error::{UResult, UUsageError, set_exit_code, strip_errno},
format_usage, show_error,
};

Expand Down Expand Up @@ -149,7 +149,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
// will produce an exit code of 101 when it panics.
#[cfg(unix)]
if let Err(e) = rustix::process::setpriority_process(None, new_niceness) {
let warning_msg = translate!("nice-warning-setpriority", "util_name" => "nice", "error" => uucore::error::strip_errno(&e.into()) );
let warning_msg = translate!("nice-warning-setpriority", "util_name" => "nice", "error" => strip_errno(&e.into()) );

if writeln!(std::io::stderr(), "{warning_msg}").is_err() {
set_exit_code(125);
Expand Down
Loading