Move all errors into errors.go

This commit is contained in:
Daniel Oaks 2018-02-03 22:03:36 +10:00
parent 3ef4c5f799
commit 2419f69879
17 changed files with 100 additions and 100 deletions

View file

@ -6,7 +6,6 @@
package irc
import (
"errors"
"fmt"
"net"
@ -25,7 +24,7 @@ type webircConfig struct {
// Populate fills out our password or fingerprint.
func (wc *webircConfig) Populate() (err error) {
if wc.Fingerprint == "" && wc.PasswordString == "" {
return errors.New("Fingerprint or password needs to be specified")
return ErrNoFingerprintOrPassword
}
if wc.PasswordString != "" {