aboutsummaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2020-05-28 03:12:09 -0400
committerJesse Luehrs <doy@tozt.net>2020-05-28 03:19:45 -0400
commit3ab2da1595da8b1b596f256a26c9e65ab35bc24c (patch)
tree5400a00a8c341582a7d93f9d06bce732f9c81d39 /src/error.rs
parent3efe6a2b304c0c63bd2ce86adcd23a3647634008 (diff)
downloadrbw-3ab2da1595da8b1b596f256a26c9e65ab35bc24c.tar.gz
rbw-3ab2da1595da8b1b596f256a26c9e65ab35bc24c.zip
display the server's error message for incorrect password
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs
index 5a6eef4..5a95fec 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -34,8 +34,8 @@ pub enum Error {
#[snafu(display("failed to expand with hkdf"))]
HkdfExpand,
- #[snafu(display("username or password incorrect"))]
- IncorrectPassword,
+ #[snafu(display("{}", message))]
+ IncorrectPassword { message: String },
#[snafu(display("invalid base64"))]
InvalidBase64 { source: base64::DecodeError },