diff --git a/mailer.js b/mailer.js index fed41c6..e7fca96 100644 --- a/mailer.js +++ b/mailer.js @@ -42,6 +42,7 @@ function send(options, callback) { function sendEndToEndTestResult(topic, versionInfo, stdout, stderr, attachmentFolder, callback) { debug('Sending e2e test result for %s', topic); + debug('Creating attachements from folder ', attachmentFolder); fs.readdir(attachmentFolder, function (error, files) { var attachments = []; @@ -57,6 +58,8 @@ function sendEndToEndTestResult(topic, versionInfo, stdout, stderr, attachmentFo ContentType: 'text/plain' }; }); + } else { + debug('Error reading attachment directory: ', error); } var mailOptions = {