1.增加错误枚举

This commit is contained in:
lubeilin
2023-01-15 19:19:04 +08:00
parent 9820c56be6
commit 206c543e8c
2 changed files with 9 additions and 1 deletions
+4 -1
View File
@@ -268,8 +268,11 @@ fn other_handle(
fast_registration(&udp, server_addr)?;
}
}
InErrorPacket::AddressExhausted => {
return Err(Error::Stop("IP address has been exhausted".to_string()));
}
InErrorPacket::OtherError(e) => {
log::warn!("OtherError {:?}", e.message());
log::error!("OtherError {:?}", e.message());
}
}
}