From 8f03929265b79f059c47049ef14194c4ff134ece Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 21 Sep 2016 13:35:53 -0700 Subject: [PATCH] better debugs --- mailer.js | 3 +++ 1 file changed, 3 insertions(+) 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 = {