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
IMHO returning an empty string or the string representation of the opcode value (strconv.Itoa(input integer)) may not convey enough information about the error condition, potentially leading to more confusion or ambiguity.
I think returning a string like "InvalidOpcode", "InvalidMessageType", "unknown opcode" , would make function's behavior more explicit and easier to handle.
Is there an existing issue for this?
Current Behavior
FormatMessageType returns the empty string for an unknown message type.
Expected Behavior
FormatMessageType should return the decimal representation of the type when the type is unknown.
Steps To Reproduce
Actual output: blank line
Expected output: 7777
Anything else?
Cc @rfyiamcool
The text was updated successfully, but these errors were encountered: