email_moderate.go: include email in error message

This commit is contained in:
Adhityaa Chandrasekar 2019-02-18 17:40:16 -05:00
parent 8a7348ed6a
commit ef68dadcd7

View File

@ -41,8 +41,8 @@ func emailModerateHandler(w http.ResponseWriter, r *http.Request) {
isModerator, err := isDomainModerator(domain, e.Email) isModerator, err := isDomainModerator(domain, e.Email)
if err != nil { if err != nil {
logger.Errorf("error checking if %s is a moderator: %v", err) logger.Errorf("error checking if %s is a moderator: %v", e.Email, err)
fmt.Fprintf(w, "error checking if %s is a moderator: %v", err) fmt.Fprintf(w, "error checking if %s is a moderator: %v", e.Email, err)
return return
} }