From b6a1388c56038a32b1d88b99c7e8af2f8e5f2cb9 Mon Sep 17 00:00:00 2001 From: Pagan Gazzard Date: Sat, 11 Apr 2015 15:27:57 +0100 Subject: [PATCH] `mixpanelTrack` expects the error property to be called `error` --- src/application.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/application.coffee b/src/application.coffee index efdc5386..0b529c48 100644 --- a/src/application.coffee +++ b/src/application.coffee @@ -65,14 +65,14 @@ logTypes = eventName: 'Application update' humanName: 'Updating application' -logSystemEvent = (logType, app, err) -> +logSystemEvent = (logType, app, error) -> message = "#{logType.humanName} '#{app.imageId}'" - if err? + if error? # Report the message from the original cause to the user. - errMessage = err.cause?.json ? err.cause?.message ? err.message + errMessage = error.cause?.json ? error.cause?.message ? error.message message += " due to '#{errMessage}'" logger.log({ message, isSystem: true }) - utils.mixpanelTrack(logType.eventName, {app, err}) + utils.mixpanelTrack(logType.eventName, {app, error}) return kill = (app) ->