From 82f553d7122627b2890690e5d6828a2b388d65ce Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Thu, 3 Jul 2025 18:11:54 -0600 Subject: [PATCH] print if connection is true or false --- src/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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!"); + } }