From 1912135a9f09a62903025c4431c1425428ffcae4 Mon Sep 17 00:00:00 2001 From: panguncle Date: Mon, 23 Mar 2020 23:51:40 +0800 Subject: [PATCH] fix: server start error return --- pkg/net/http/blademaster/server.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/net/http/blademaster/server.go b/pkg/net/http/blademaster/server.go index 6fa12ac56..20f817280 100644 --- a/pkg/net/http/blademaster/server.go +++ b/pkg/net/http/blademaster/server.go @@ -91,8 +91,7 @@ func (engine *Engine) Start() error { conf := engine.conf l, err := net.Listen(conf.Network, conf.Addr) if err != nil { - errors.Wrapf(err, "blademaster: listen tcp: %s", conf.Addr) - return err + return errors.Wrapf(err, "blademaster: listen tcp: %s", conf.Addr) } log.Info("blademaster: start http listen addr: %s", conf.Addr)