diff --git a/src/uu/install/locales/en-US.ftl b/src/uu/install/locales/en-US.ftl index 0a4037ecc4e..903054ac43c 100644 --- a/src/uu/install/locales/en-US.ftl +++ b/src/uu/install/locales/en-US.ftl @@ -51,7 +51,7 @@ install-error-mutually-exclusive-target = Options --target-directory and --no-ta install-error-mutually-exclusive-compare-strip = Options --compare and --strip are mutually exclusive install-error-missing-file-operand = missing file operand install-error-missing-destination-operand = missing destination file operand after { $path } -install-error-failed-to-remove = Failed to remove existing file { $path }. Error: { $error } +install-error-failed-to-remove = Failed to remove existing file { $path }. { $error } install-error-will-not-overwrite-just-created = will not overwrite just-created { $dest } with { $source } # Warning messages diff --git a/src/uu/install/locales/fr-FR.ftl b/src/uu/install/locales/fr-FR.ftl index 70ae931697b..b2e1bc02ff9 100644 --- a/src/uu/install/locales/fr-FR.ftl +++ b/src/uu/install/locales/fr-FR.ftl @@ -50,7 +50,7 @@ install-error-mutually-exclusive-target = Les options --target-directory et --no install-error-mutually-exclusive-compare-strip = Les options --compare et --strip sont mutuellement exclusives install-error-missing-file-operand = opérande de fichier manquant install-error-missing-destination-operand = opérande de fichier de destination manquant après { $path } -install-error-failed-to-remove = Échec de la suppression du fichier existant { $path }. Erreur : { $error } +install-error-failed-to-remove = Échec de la suppression du fichier existant { $path }. { $error } install-error-will-not-overwrite-just-created = n'écrasera pas le fichier tout juste créé { $dest } avec { $source } # Messages d'avertissement diff --git a/src/uu/install/src/install.rs b/src/uu/install/src/install.rs index f67c8b3ead9..9e8812e5017 100644 --- a/src/uu/install/src/install.rs +++ b/src/uu/install/src/install.rs @@ -802,7 +802,7 @@ fn standard(mut paths: Vec, b: &Behavior) -> UResult<()> { { show_error!( "{}", - translate!("install-error-failed-to-remove", "path" => target.quote(), "error" => format!("{e:?}")) + translate!("install-error-failed-to-remove", "path" => target.quote(), "error" => strip_errno(&e)) ); } @@ -1032,7 +1032,7 @@ fn copy_file(from: &Path, to: &Path) -> UResult<()> { } _ => show_error!( "{}", - translate!("install-error-failed-to-remove", "path" => to.quote(), "error" => format!("{e:?}")) + translate!("install-error-failed-to-remove", "path" => to.quote(), "error" => strip_errno(&e)) ), } }