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:
Alexis Sellier 2023-09-17 21:50:11 +02:00 committed by cloudhead
parent 5c326cf242
commit a5a553815c
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}