Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
remote-helper: Be more consistent with errors
Alexis Sellier committed 2 years ago
commit a5a553815cbbe95b37780a0db0b15bedabccc29d
parent 5c326cf24246ca85d9784b1f620c1abbb1e5ce08
1 file changed +3 -3
modified 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);
    }
}