From 4c660cad12c955b3d941875a10a8b63c0894ccbc Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Thu, 27 Jul 2023 22:02:07 +0200 Subject: [PATCH] Handle multiple mail values --- view-user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view-user.go b/view-user.go index 1141625..e4686ae 100644 --- a/view-user.go +++ b/view-user.go @@ -39,7 +39,7 @@ func handleUserMail(w http.ResponseWriter, r *http.Request) { err = login.conn.Modify(modifyRequest) if err != nil { - http.Error(w, fmt.Sprintf("Error adding the email: %s", err), http.StatusInternalServerError) + http.Error(w, fmt.Sprintf("Error adding the email: %v", modifyRequest), http.StatusInternalServerError) return } } else if action == "Delete" && index != "" {