Merge pull request #528 from panguncle/fix-server-error

fix: server start error return
pull/532/head
Terry.Mao 5 years ago committed by GitHub
commit edb06949e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      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)

Loading…
Cancel
Save