From a5a553815cbbe95b37780a0db0b15bedabccc29d Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Sun, 17 Sep 2023 21:50:11 +0200 Subject: [PATCH] remote-helper: Be more consistent with errors Since we don't control when this error is output, we stick to the more common "error:" prefix, which can be shown in any order in the output. --- radicle-remote-helper/src/git-remote-rad.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/radicle-remote-helper/src/git-remote-rad.rs b/radicle-remote-helper/src/git-remote-rad.rs index ca7829d4..c33a5d5a 100644 --- a/radicle-remote-helper/src/git-remote-rad.rs +++ b/radicle-remote-helper/src/git-remote-rad.rs @@ -12,7 +12,7 @@ fn main() { if args.nth(1).as_deref() == Some("--version") { if let Err(e) = version::print(std::io::stdout(), NAME, VERSION, GIT_HEAD) { - eprintln!("fatal: {e}"); + eprintln!("error: {e}"); process::exit(1); }; process::exit(0); @@ -21,13 +21,13 @@ fn main() { let profile = match radicle::Profile::load() { Ok(profile) => profile, Err(err) => { - eprintln!("fatal: couldn't load profile: {err}"); + eprintln!("error: couldn't load profile: {err}"); process::exit(1); } }; if let Err(err) = radicle_remote_helper::run(profile) { - eprintln!("fatal: {err}"); + eprintln!("error: {err}"); process::exit(1); } }