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 }); });