print if connection is true or false
This commit is contained in:
parent
26bcc8fb80
commit
82f553d712
1 changed files with 5 additions and 2 deletions
|
@ -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!");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue