From 36daf86ea2f97587eefcab3d03e66d551b275b8c Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 10 Nov 2015 01:39:02 -0800 Subject: [PATCH] send mail even if no related app was found (for addons) --- src/apphealthmonitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apphealthmonitor.js b/src/apphealthmonitor.js index 5f6c480a5..f16592e20 100644 --- a/src/apphealthmonitor.js +++ b/src/apphealthmonitor.js @@ -151,7 +151,7 @@ function processDockerEvents() { debug('OOM Context: %s', context); // do not send mails for dev apps - if (app.appStoreId !== '') mailer.sendCrashNotification(program, context); // app can be null if it's an addon crash + if (error || app.appStoreId !== '') mailer.sendCrashNotification(program, context); // app can be null if it's an addon crash }); });