Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
bugfix: fix missing error message 'Unable to autodetect advertiser ip…
Browse files Browse the repository at this point in the history
…, please set it via --advertise-ip'

related to #1428

Signed-off-by: zhaxzhax <[email protected]>
  • Loading branch information
zhaxzhax authored and lowzj committed Jul 16, 2020
1 parent eaeed52 commit 5eb5540
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/supernode/app/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,8 @@ func setAdvertiseIP(cfg *config.Config) error {
return errors.Wrapf(errortypes.ErrSystemError, "failed to get ip list: %v", err)
}
if len(ipList) == 0 {
logrus.Debugf("get empty system's unicast interface addresses")
return nil
logrus.Errorf("get empty system's unicast interface addresses")
return errors.Wrapf(errortypes.ErrSystemError, "Unable to autodetect advertiser ip, please set it via --advertise-ip")
}

cfg.AdvertiseIP = ipList[0]
Expand Down

0 comments on commit 5eb5540

Please sign in to comment.