summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2015-10-21 13:41:49 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-10-21 14:00:29 +0900
commite1bec970c309084569a2f39621f90bc5e6ddb171 (patch)
tree2efd75ea746044548f4d9381a42575def9ea4fa5
parent087c1871c899aee115b07182c03d071082c58ab3 (diff)
zebra: return error
Signed-off-by: Hiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>
-rw-r--r--zebra/zapi.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zapi.go b/zebra/zapi.go
index 189b5733..cd1705e1 100644
--- a/zebra/zapi.go
+++ b/zebra/zapi.go
@@ -365,7 +365,7 @@ func (c *Client) SendRedistributeDelete(t ROUTE_TYPE) error {
return e
}
} else {
- fmt.Errorf("unknown route type: %d", t)
+ return fmt.Errorf("unknown route type: %d", t)
}
return nil
}