Skip to content
Snippets Groups Projects
Unverified Commit efaf0b28 authored by Daniel Czerwonk's avatar Daniel Czerwonk Committed by GitHub
Browse files

Update path_attributes.go

unified error message
parent 1b0f3df0
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment