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

Commit d34775a

Browse files
committed
Merge pull request #1429 from zhaxzhax/fix-#1428
bugfix: fix missing error message 'Unable to autodetect advertiser ip
2 parents eaeed52 + 5eb5540 commit d34775a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/supernode/app/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,8 @@ func setAdvertiseIP(cfg *config.Config) error {
375375
return errors.Wrapf(errortypes.ErrSystemError, "failed to get ip list: %v", err)
376376
}
377377
if len(ipList) == 0 {
378-
logrus.Debugf("get empty system's unicast interface addresses")
379-
return nil
378+
logrus.Errorf("get empty system's unicast interface addresses")
379+
return errors.Wrapf(errortypes.ErrSystemError, "Unable to autodetect advertiser ip, please set it via --advertise-ip")
380380
}
381381

382382
cfg.AdvertiseIP = ipList[0]

0 commit comments

Comments
 (0)