Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: provide error context for ssh-agent connect
Fintan Halpenny committed 1 year ago
commit a723068246bf5ab646efd25f5b9e0f0d6304291a
parent ffc86f8a9687a1a085f955abe058c7f1cb65daa6
1 file changed +2 -2
modified radicle-cli/src/commands/auth.rs
@@ -3,7 +3,7 @@ use std::ffi::OsString;
use std::ops::Not as _;
use std::str::FromStr;

-
use anyhow::anyhow;
+
use anyhow::{anyhow, Context};

use radicle::crypto::ssh;
use radicle::crypto::ssh::Passphrase;
@@ -129,7 +129,7 @@ pub fn init(options: Options) -> anyhow::Result<()> {
            Err(e) if e.is_not_running() => {
                agent = false;
            }
-
            Err(e) => Err(e)?,
+
            Err(e) => Err(e).context("failed to connect to ssh-agent")?,
        }
    }