diff options
Diffstat (limited to 'packet/bgp.go')
-rw-r--r-- | packet/bgp.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet/bgp.go b/packet/bgp.go index 9df7812d..819169c9 100644 --- a/packet/bgp.go +++ b/packet/bgp.go @@ -2983,7 +2983,7 @@ type MessageError struct { TypeCode uint8 SubTypeCode uint8 Data []byte - message string + Message string } func NewMessageError(typeCode, subTypeCode uint8, data []byte, msg string) error { @@ -2991,10 +2991,10 @@ func NewMessageError(typeCode, subTypeCode uint8, data []byte, msg string) error TypeCode: typeCode, SubTypeCode: subTypeCode, Data: data, - message: msg, + Message: msg, } } func (e *MessageError) Error() string { - return e.message + return e.Message } |