diff --git a/src/main.rs b/src/main.rs index 45d5006..4b64d7f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,7 +15,10 @@ fn main() { // Try to authenticate with the first identity in the agent. sess.userauth_agent(USER).unwrap(); - // Make sure we succeeded - assert!(sess.authenticated()); + if sess.authenticated() { + println!("Authentication successful!"); + } else { + println!("Authentication failed!"); + } }