From 78da024b24cb514fe070ecb55217b2431fd70178 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Thu, 19 Dec 2019 09:30:49 -0500 Subject: [PATCH] improve an error message --- irc/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/config.go b/irc/config.go index 3d0fe34d..58fa60da 100644 --- a/irc/config.go +++ b/irc/config.go @@ -482,7 +482,7 @@ func (conf *Config) Operators(oc map[string]*OperClass) (map[string]*Oper, error if opConf.Password != "" { oper.Pass, err = decodeLegacyPasswordHash(opConf.Password) if err != nil { - return nil, err + return nil, fmt.Errorf("Oper %s has an invalid password hash: %s", oper.Name, err.Error()) } } oper.Fingerprint = opConf.Fingerprint