mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-06-05 17:11:39 +00:00
mixpanelTrack
expects the error property to be called error
This commit is contained in:
parent
e8b6889d46
commit
b6a1388c56
@ -65,14 +65,14 @@ logTypes =
|
|||||||
eventName: 'Application update'
|
eventName: 'Application update'
|
||||||
humanName: 'Updating application'
|
humanName: 'Updating application'
|
||||||
|
|
||||||
logSystemEvent = (logType, app, err) ->
|
logSystemEvent = (logType, app, error) ->
|
||||||
message = "#{logType.humanName} '#{app.imageId}'"
|
message = "#{logType.humanName} '#{app.imageId}'"
|
||||||
if err?
|
if error?
|
||||||
# Report the message from the original cause to the user.
|
# 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}'"
|
message += " due to '#{errMessage}'"
|
||||||
logger.log({ message, isSystem: true })
|
logger.log({ message, isSystem: true })
|
||||||
utils.mixpanelTrack(logType.eventName, {app, err})
|
utils.mixpanelTrack(logType.eventName, {app, error})
|
||||||
return
|
return
|
||||||
|
|
||||||
kill = (app) ->
|
kill = (app) ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user