Skip to content

Commit

Permalink
Improve message for failed auth error
Browse files Browse the repository at this point in the history
  • Loading branch information
htrefil committed Apr 22, 2023
1 parent c210f2c commit 60f9e20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rkvm-client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub enum Error {
Input(io::Error),
#[error("Incompatible server version (got {server}, expected {client})")]
Version { server: Version, client: Version },
#[error("Auth challenge failed (possibly wrong password)")]
#[error("Invalid password")]
Auth,
}

Expand Down
2 changes: 1 addition & 1 deletion rkvm-server/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ enum ClientError {
Io(#[from] io::Error),
#[error("Incompatible client version (got {client}, expected {server})")]
Version { server: Version, client: Version },
#[error("Auth challenge failed (possibly wrong password)")]
#[error("Invalid password")]
Auth,
#[error(transparent)]
Rand(#[from] rand::Error),
Expand Down

0 comments on commit 60f9e20

Please sign in to comment.