From c4f8abc879d23c436a1ea1b3d036af56d1a95130 Mon Sep 17 00:00:00 2001
From: Lloyd Hilaiel <lloyd@hilaiel.com>
Date: Thu, 9 Feb 2012 09:25:17 -0700
Subject: [PATCH] include email address we couldn't send email to when logging
 send errors.  closes #1069

---
 lib/email.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/email.js b/lib/email.js
index 8634eede0..4bb0c50d6 100644
--- a/lib/email.js
+++ b/lib/email.js
@@ -64,9 +64,8 @@ function doSend(landing_page, email, site, secret, langContext) {
       subject: subject,
       body: template({ link: url, site: site, gettext: _, format: format })
     }, function(err, success){
-      if(!success) {
-        logger.error("error sending email: " + err);
-        logger.error("verification URL: " + url);
+      if (!success) {
+        logger.error("error sending email to: " + email + " - " + err);
       }
     });
   };
-- 
GitLab