diff options
| author | Eskil Queseth <eskilq@kth.se> | 2020-10-16 02:18:59 +0200 |
|---|---|---|
| committer | Eskil Queseth <eskilq@kth.se> | 2020-10-16 02:18:59 +0200 |
| commit | 6a6ee0c9db9de7f7632050ad4984a3f92d8a96e9 (patch) | |
| tree | 61d83227f083c98770677f9cd1a1ea787b2438e4 /mumd | |
| parent | 6136a8d7e9d251348fa514f04d74aa19257c1e18 (diff) | |
| download | mum-6a6ee0c9db9de7f7632050ad4984a3f92d8a96e9.tar.gz | |
add pretty printing for error type
Diffstat (limited to 'mumd')
| -rw-r--r-- | mumd/src/state.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mumd/src/state.rs b/mumd/src/state.rs index a9dbfc6..82d671e 100644 --- a/mumd/src/state.rs +++ b/mumd/src/state.rs @@ -59,7 +59,7 @@ impl State { } if let Some(server) = &self.server { if !server.channels().contains_key(&channel_id) { - return (false, Err(Error::InvalidChannelIdError)); + return (false, Err(Error::InvalidChannelIdError(channel_id))); } } let mut msg = msgs::UserState::new(); @@ -97,7 +97,7 @@ impl State { Ok(Some(v)) => v, _ => { warn!("Error parsing server addr"); - return (false, Err(Error::InvalidServerAddrError)); + return (false, Err(Error::InvalidServerAddrError(host, port))); } }; self.connection_info_sender |
