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) {