Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1429 from zhaxzhax/fix-#1428
Browse files Browse the repository at this point in the history
bugfix: fix missing error message 'Unable to autodetect advertiser ip
  • Loading branch information
lowzj committed Jul 16, 2020
2 parents eaeed52 + 5eb5540 commit d34775a
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 d34775a

Please sign in to comment.