Skip to content
Snippets Groups Projects
Commit fa8681e9 authored by Jonah Husson's avatar Jonah Husson
Browse files

Include type for unknown message type string

parent 6bd2f79f
No related branches found
No related tags found
3 merge requests!510Release,!226WIP: Api2.0,!207WIP: Client Restructure
package catalog package catalog
import "fmt"
type MessageType uint32 type MessageType uint32
const MessageTypeLen = 32 / 8 const MessageTypeLen = 32 / 8
...@@ -72,6 +74,6 @@ func (mt MessageType) String() string { ...@@ -72,6 +74,6 @@ func (mt MessageType) String() string {
case ConnectionAuthenticationRequest: case ConnectionAuthenticationRequest:
return "ConnectionAuthenticationRequest" return "ConnectionAuthenticationRequest"
default: default:
return "UNKNOWN TYPE" return fmt.Sprintf("UNKNOWN TYPE (%d)", mt)
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment