From ef68dadcd7bf4c77cc14a422ee3f0973fce9256e Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Mon, 18 Feb 2019 17:40:16 -0500 Subject: [PATCH] email_moderate.go: include email in error message --- api/email_moderate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/email_moderate.go b/api/email_moderate.go index 9c4ba13..3cefb3d 100644 --- a/api/email_moderate.go +++ b/api/email_moderate.go @@ -41,8 +41,8 @@ func emailModerateHandler(w http.ResponseWriter, r *http.Request) { isModerator, err := isDomainModerator(domain, e.Email) if err != nil { - logger.Errorf("error checking if %s is a moderator: %v", err) - fmt.Fprintf(w, "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", e.Email, err) return }