From efaf0b281e12ee01cb6bc465fb4dc1e754f433eb Mon Sep 17 00:00:00 2001 From: Daniel Czerwonk <czerwonk@users.noreply.github.com> Date: Thu, 31 May 2018 21:46:20 +0200 Subject: [PATCH] Update path_attributes.go unified error message --- protocols/bgp/packet/path_attributes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/bgp/packet/path_attributes.go b/protocols/bgp/packet/path_attributes.go index f238cfd6..976dcb07 100644 --- a/protocols/bgp/packet/path_attributes.go +++ b/protocols/bgp/packet/path_attributes.go @@ -245,7 +245,7 @@ func (pa *PathAttribute) decodeAggregator(buf *bytes.Buffer) error { func (pa *PathAttribute) decodeCommunities(buf *bytes.Buffer) error { if pa.Length%CommunityLen != 0 { - return fmt.Errorf("Unable to read community path attribute length %d is not divisible by 4", pa.Length) + return fmt.Errorf("Unable to read community path attribute. Length %d is not divisible by 4", pa.Length) } count := pa.Length / CommunityLen -- GitLab