]> Cypherpunks.ru repositories - gocheese.git/commitdiff
Slightly more descriptive error
authorSergey Matveev <stargrave@stargrave.org>
Sat, 5 Oct 2019 13:13:14 +0000 (16:13 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 5 Oct 2019 13:13:14 +0000 (16:13 +0300)
gocheese.go

index b27df8c02f80cba03bb636a2a76f6865815be25c..9035e99ccca883e1422520f8c3ee580606c06ae3 100644 (file)
@@ -432,7 +432,7 @@ func main() {
        for _, credentials := range strings.Split(strings.TrimRight(string(passwd), "\n"), "\n") {
                splitted := strings.Split(credentials, ":")
                if len(splitted) != 2 {
-                       log.Fatal("Wrong auth format")
+                       log.Fatal("Wrong login:password format")
                }
                passwords[splitted[0]] = splitted[1]
        }