diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-03-29 21:38:12 +0200 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-03-29 21:38:12 +0200 |
| commit | 5af72d30bb1b34cbde1c3ba5e73b7c694461ae51 (patch) | |
| tree | 11e84e851de0c8431a72fcb9f7bd38057bc722cd /mumlib/src | |
| parent | 65016caa8d565942086540edbee95b8af1e75c8c (diff) | |
| download | mum-5af72d30bb1b34cbde1c3ba5e73b7c694461ae51.tar.gz | |
report invalid server password
Diffstat (limited to 'mumlib/src')
| -rw-r--r-- | mumlib/src/error.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mumlib/src/error.rs b/mumlib/src/error.rs index 820d5f3..0259c28 100644 --- a/mumlib/src/error.rs +++ b/mumlib/src/error.rs @@ -10,6 +10,7 @@ pub enum Error { ChannelIdentifierError(String, ChannelIdentifierError), InvalidServerAddrError(String, u16), InvalidUsernameError(String), + InvalidServerPassword, } impl fmt::Display for Error { @@ -22,6 +23,7 @@ impl fmt::Display for Error { write!(f, "Invalid server address: {}: {}", addr, port) } Error::InvalidUsernameError(username) => write!(f, "Invalid username: {}", username), + Error::InvalidServerPassword => write!(f, "Invalid server password") } } } |
