Skip to content

Commit 3c2dc79

Browse files
committed
error message when server is not started with password
1 parent 398d37d commit 3c2dc79

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test-server/main.go

+1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ func (ct *WordsHandler) login(w http.ResponseWriter, r *http.Request) {
114114
if ct.password == "" {
115115
w.WriteHeader(http.StatusBadRequest)
116116
fmt.Fprintf(w, "start the test-server with a password first")
117+
fmt.Printf("Returned HTTP 400 error to client: server has no password set\n")
117118
return
118119
}
119120

0 commit comments

Comments
 (0)