You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/entities.rs
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ pub enum Exception {
35
35
BadProtocolVersion,
36
36
///Error on serialize or deserialize
37
37
BincodeError(bincode::Error),
38
-
/// Not ordered command or state come by this reason it was skipped.
38
+
/// Not ordered command or state received by this reason it was skipped.
39
39
/// Maybe it is duplicated.
40
40
/// Retry again.
41
41
NotOrderedPacketError,
@@ -49,7 +49,12 @@ impl Error for Exception {}
49
49
50
50
implDisplayforException{
51
51
fnfmt(&self,f:&mutFormatter) -> std::fmt::Result{
52
-
write!(f,"{:#?}",self)
52
+
matchself{
53
+
Exception::BadProtocolVersion => write!(f,"Different lib version on client and server. You must update client and server."),
54
+
Exception::NotOrderedPacketError => write!(f,"Not ordered command or state received by this reason it was skipped. Maybe it is duplicated. Retry again."),
55
+
Exception::NotValidIdError => write!(f,"Packet not from this lib. Lib ignoring it. Retry again."),
0 commit comments