Skip to content

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 dragonflyoss#1428

Signed-off-by: zhaxzhax <[email protected]>
  • Loading branch information
zhaxzhax authored and zhaxzhax committed Jul 14, 2020
1 parent 12cfd62 commit 2ea9362
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 2ea9362

Please sign in to comment.