diff options
| author | Eskil Queseth <eskilq@kth.se> | 2020-10-17 01:19:45 +0200 |
|---|---|---|
| committer | Eskil Queseth <eskilq@kth.se> | 2020-10-17 01:19:45 +0200 |
| commit | 1974db9d719640f5cd5a8b51fa1b97f801f5a809 (patch) | |
| tree | 47d1b1a92a836ef0f69e45a543b96c11451ab380 /mumlib/src/error.rs | |
| parent | e2f5c15e17d0ddcde88830194410c387793c045f (diff) | |
| download | mum-1974db9d719640f5cd5a8b51fa1b97f801f5a809.tar.gz | |
change connecting with channel name instead of id
Diffstat (limited to 'mumlib/src/error.rs')
| -rw-r--r-- | mumlib/src/error.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mumlib/src/error.rs b/mumlib/src/error.rs index cb88aa7..3e514fd 100644 --- a/mumlib/src/error.rs +++ b/mumlib/src/error.rs @@ -8,7 +8,7 @@ pub type Result<T> = std::result::Result<T, Error>; pub enum Error { DisconnectedError, AlreadyConnectedError, - InvalidChannelIdError(u32), + InvalidChannelIdentifierError(String), InvalidServerAddrError(String, u16), } @@ -17,7 +17,7 @@ impl Display for Error { match self { Error::DisconnectedError => write!(f, "Not connected to a server"), Error::AlreadyConnectedError => write!(f, "Already connected to a server"), - Error::InvalidChannelIdError(id) => write!(f, "Invalid channel id: {}", id), + Error::InvalidChannelIdentifierError(id) => write!(f, "Couldn't find channel {}", id), Error::InvalidServerAddrError(addr, port) => write!(f, "Invalid server address: {}:{}", addr, port), } } |
