1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-10 00:29:01 +02:00

fix: server start error return

This commit is contained in:
panguncle 2020-03-23 23:51:40 +08:00
parent 7c946dc919
commit 1912135a9f

View File

@ -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)