aboutsummaryrefslogtreecommitdiffstats
path: root/mumd
diff options
context:
space:
mode:
authorEskil Queseth <eskilq@kth.se>2020-10-16 02:18:59 +0200
committerEskil Queseth <eskilq@kth.se>2020-10-16 02:18:59 +0200
commit6a6ee0c9db9de7f7632050ad4984a3f92d8a96e9 (patch)
tree61d83227f083c98770677f9cd1a1ea787b2438e4 /mumd
parent6136a8d7e9d251348fa514f04d74aa19257c1e18 (diff)
downloadmum-6a6ee0c9db9de7f7632050ad4984a3f92d8a96e9.tar.gz
add pretty printing for error type
Diffstat (limited to 'mumd')
-rw-r--r--mumd/src/state.rs4
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