Fix crash on mutt error

This commit is contained in:
Ian Webster 2016-05-26 14:26:38 -07:00
parent 13a2f64970
commit 3d758729e5

View File

@ -73,7 +73,7 @@ function sendText(phone, message, carrier, region, cb) {
output(decoder.write(data)); output(decoder.write(data));
}); });
child.on('error', function(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); cb(false);
}); });
child.on('exit', function(code, signal) { child.on('exit', function(code, signal) {