summaryrefslogtreecommitdiffhomepage
path: root/table/adj.go
diff options
context:
space:
mode:
authorWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-11-17 02:06:22 -0500
committerWataru Ishida <ishida.wataru@lab.ntt.co.jp>2016-11-17 21:52:20 -0500
commit24e397b0f65b1c5294ea711a953501fda944411d (patch)
tree6a08d7863516465fc1c421cfd20805f2c209f833 /table/adj.go
parenta3e262f3a83fedeeabc5c7820a6d42b54e0325c1 (diff)
add go vet test
Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'table/adj.go')
-rw-r--r--table/adj.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/table/adj.go b/table/adj.go
index ea7b4151..f1843859 100644
--- a/table/adj.go
+++ b/table/adj.go
@@ -192,7 +192,7 @@ func (adj *AdjRib) Select(family bgp.RouteFamily, accepted bool, option ...Table
func (adj *AdjRib) TableInfo(family bgp.RouteFamily) (*TableInfo, error) {
if _, ok := adj.table[family]; !ok {
- return nil, fmt.Errorf("%s unsupported")
+ return nil, fmt.Errorf("%s unsupported", family)
}
c := adj.Count([]bgp.RouteFamily{family})
a := adj.Accepted([]bgp.RouteFamily{family})