mirror of
https://github.com/htrefil/rkvm.git
synced 2025-01-13 20:01:29 +01:00
Improve message for failed auth error
This commit is contained in:
parent
c210f2c85a
commit
60f9e20b0e
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ pub enum Error {
|
||||||
Input(io::Error),
|
Input(io::Error),
|
||||||
#[error("Incompatible server version (got {server}, expected {client})")]
|
#[error("Incompatible server version (got {server}, expected {client})")]
|
||||||
Version { server: Version, client: Version },
|
Version { server: Version, client: Version },
|
||||||
#[error("Auth challenge failed (possibly wrong password)")]
|
#[error("Invalid password")]
|
||||||
Auth,
|
Auth,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -120,7 +120,7 @@ enum ClientError {
|
||||||
Io(#[from] io::Error),
|
Io(#[from] io::Error),
|
||||||
#[error("Incompatible client version (got {client}, expected {server})")]
|
#[error("Incompatible client version (got {client}, expected {server})")]
|
||||||
Version { server: Version, client: Version },
|
Version { server: Version, client: Version },
|
||||||
#[error("Auth challenge failed (possibly wrong password)")]
|
#[error("Invalid password")]
|
||||||
Auth,
|
Auth,
|
||||||
#[error(transparent)]
|
#[error(transparent)]
|
||||||
Rand(#[from] rand::Error),
|
Rand(#[from] rand::Error),
|
||||||
|
|
Loading…
Reference in a new issue