1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-24 03:46:37 +02:00

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

fix: server start error return
This commit is contained in:
Terry.Mao 2020-03-28 16:00:22 +08:00 committed by GitHub
commit edb06949e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)