mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-17 05:05:03 +01:00
improve errors
This commit is contained in:
parent
232c1d2830
commit
2be26f7e49
3 changed files with 68 additions and 10 deletions
|
|
@ -102,7 +102,7 @@ impl Connection {
|
|||
/* do nothing, remove below */
|
||||
}
|
||||
Err(TransError::Protocol(ProtocolError::ConException(ex))) => {
|
||||
warn!(%ex, "Connection exception occured. This indicates a faulty client.");
|
||||
warn!(%ex, "Connection exception occurred. This indicates a faulty client.");
|
||||
if let Err(err) = self
|
||||
.send_method(
|
||||
ChannelNum::zero(),
|
||||
|
|
@ -262,6 +262,7 @@ impl Connection {
|
|||
match result {
|
||||
Ok(()) => {}
|
||||
Err(TransError::Protocol(ProtocolError::ChannelException(ex))) => {
|
||||
warn!(%ex, "Channel exception occurred");
|
||||
self.send_method(
|
||||
channel,
|
||||
Method::ChannelClose(ChannelClose {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue