diff rust/rhg/src/main.rs @ 46731:3d692e724d06

rhg: Align config file parse error formatting with Python Differences can cause tests to fail Differential Revision: https://phab.mercurial-scm.org/D10110
author Simon Sapin <simon.sapin@octobus.net>
date Wed, 03 Mar 2021 19:47:48 +0100
parents 6cd9f53aaed8
children 1bac7764ceef
line wrap: on
line diff
--- a/rust/rhg/src/main.rs	Wed Mar 03 19:08:27 2021 +0100
+++ b/rust/rhg/src/main.rs	Wed Mar 03 19:47:48 2021 +0100
@@ -201,8 +201,7 @@
             if !message.is_empty() {
                 // Ignore errors when writing to stderr, we’re already exiting
                 // with failure code so there’s not much more we can do.
-                let _ =
-                    ui.write_stderr(&format_bytes!(b"abort: {}\n", message));
+                let _ = ui.write_stderr(&format_bytes!(b"{}\n", message));
             }
         }
         Err(CommandError::UnsupportedFeature { message }) => {