mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
nice: remove useless translations
This commit is contained in:
@@ -4,11 +4,9 @@ nice-about = Run COMMAND with an adjusted niceness, which affects process schedu
|
||||
nice-usage = nice [OPTION] [COMMAND [ARG]...]
|
||||
|
||||
# Error messages
|
||||
nice-error-getpriority = getpriority: { $error }
|
||||
nice-error-command-required-with-adjustment = A command must be given with an adjustment.
|
||||
nice-error-invalid-number = "{ $value }" is not a valid number: { $error }
|
||||
nice-warning-setpriority = { $util_name }: warning: setpriority: { $error }
|
||||
nice-error-execvp = execvp: { $error }
|
||||
|
||||
# Help text for command-line arguments
|
||||
nice-help-adjustment = add N to the niceness (default is 10)
|
||||
|
||||
+2
-11
@@ -111,10 +111,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||
if Error::last_os_error().raw_os_error().unwrap() != 0 {
|
||||
return Err(USimpleError::new(
|
||||
125,
|
||||
get_message_with_args(
|
||||
"nice-error-getpriority",
|
||||
HashMap::from([("error".to_string(), Error::last_os_error().to_string())]),
|
||||
),
|
||||
format!("getpriority: {}", Error::last_os_error()),
|
||||
));
|
||||
}
|
||||
|
||||
@@ -183,13 +180,7 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> {
|
||||
execvp(args[0], args.as_mut_ptr());
|
||||
}
|
||||
|
||||
show_error!(
|
||||
"{}",
|
||||
get_message_with_args(
|
||||
"nice-error-execvp",
|
||||
HashMap::from([("error".to_string(), Error::last_os_error().to_string())])
|
||||
)
|
||||
);
|
||||
show_error!("execvp: {}", Error::last_os_error());
|
||||
|
||||
let exit_code = if Error::last_os_error().raw_os_error().unwrap() as c_int == libc::ENOENT {
|
||||
127
|
||||
|
||||
Reference in New Issue
Block a user