make the error code a uint16

This commit is contained in:
Marten Seemann
2018-10-31 10:49:44 +07:00
parent c1a4d3d215
commit f82c583957

View File

@@ -5,7 +5,7 @@ import (
)
// ErrorCode can be used as a normal error without reason.
type ErrorCode uint32
type ErrorCode uint16
func (e ErrorCode) Error() string {
return e.String()