Skip to content

Commit 02a0154

Browse files
committed
fix ListPath error handling
1 parent a98cbba commit 02a0154

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/bgpserver/connector.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,11 @@ func (bs *bgpServerConnector) ListPath() ([]Route, error) {
220220
}
221221
}
222222
})
223+
if err != nil {
224+
return nil, err
225+
}
223226

224-
return routes, err
227+
return routes, nil
225228
}
226229

227230
func (bs *bgpServerConnector) Stop() {

0 commit comments

Comments
 (0)