From 3d758729e58a5f2467ce6fbfecfab94b2f6bfd0f Mon Sep 17 00:00:00 2001 From: Ian Webster Date: Thu, 26 May 2016 14:26:38 -0700 Subject: [PATCH] Fix crash on mutt error --- lib/text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/text.js b/lib/text.js index e889c0b..952fda7 100644 --- a/lib/text.js +++ b/lib/text.js @@ -73,7 +73,7 @@ function sendText(phone, message, carrier, region, cb) { output(decoder.write(data)); }); child.on('error', function(data) { - output('mutt failed', {email: email, data: decoder.write(data)}); + output('mutt failed', {email: emails, data: decoder.write(data)}); cb(false); }); child.on('exit', function(code, signal) {