mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-21 02:20:43 +08:00
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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user