Skip to content

Commit

Permalink
fix(cli): allow select version() failed (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
b41sh authored Jul 15, 2024
1 parent ded4cf8 commit b7bbfcf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl Session {
);
}
}
let version = conn.version().await?;
let version = conn.version().await.unwrap_or_default();
println!("Connected to {}", version);
println!();

Expand Down Expand Up @@ -163,7 +163,7 @@ impl Session {

// server version
{
let version = self.conn.version().await?;
let version = self.conn.version().await.unwrap_or_default();
println!("Server version: {}", version);
}

Expand Down Expand Up @@ -540,7 +540,7 @@ impl Session {
"reconnecting to {}:{} as user {}.",
info.host, info.port, info.user
);
let version = self.conn.version().await?;
let version = self.conn.version().await.unwrap_or_default();
eprintln!("connected to {}", version);
eprintln!();
}
Expand Down

0 comments on commit b7bbfcf

Please sign in to comment.