Improve message for failed auth error

This commit is contained in:
Jan Trefil 2023-04-22 14:05:01 +02:00
parent c210f2c85a
commit 60f9e20b0e
2 changed files with 2 additions and 2 deletions

View file

@ -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,
}

View file

@ -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),