forked from External/ergo
Move config errors to call sites
Since allocating them is rare.
This commit is contained in:
parent
6a2fba9812
commit
9000383f88
3 changed files with 10 additions and 25 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue