cli: Small improvements to `rad auth` error output

This commit is contained in:
cloudhead 2024-04-30 22:07:04 +02:00
parent 780f0eff37
commit 9cd08a01db
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -84,13 +84,13 @@ pub fn init(options: Options) -> anyhow::Result<()> {
if let Ok(version) = radicle::git::version() {
if version < radicle::git::VERSION_REQUIRED {
term::warning(format!(
"Your git version is unsupported, please upgrade to {} or later",
"Your Git version is unsupported, please upgrade to {} or later",
radicle::git::VERSION_REQUIRED,
));
term::blank();
}
} else {
anyhow::bail!("Error retrieving git version; please check your installation");
anyhow::bail!("a Git installation is required for Radicle to run");
}
let alias: Alias = if let Some(alias) = options.alias {