1
0
Fork 0
forked from External/ergo

Move config errors to call sites

Since allocating them is rare.
This commit is contained in:
Shivaram Lingamneni 2020-08-03 12:55:52 -04:00
parent 6a2fba9812
commit 9000383f88
3 changed files with 10 additions and 25 deletions

View file

@ -55,7 +55,7 @@ func (wc *webircConfig) Populate() (err error) {
}
if wc.Certfp == "" && wc.PasswordString == "" {
return ErrNoFingerprintOrPassword
return errors.New("webirc block has no certfp or password specified")
}
wc.allowedNets, err = utils.ParseNetList(wc.Hosts)