diff --git a/functions/sentry-mattermost/function.js b/functions/sentry-mattermost/function.js index b63858e..147b82d 100644 --- a/functions/sentry-mattermost/function.js +++ b/functions/sentry-mattermost/function.js @@ -10,7 +10,9 @@ const forwardSentryEvent = (payload, channel) => { const markdown = ` :warning: ${ event.extra && event.extra.namespace ? `**${event.extra.namespace}**` : `` - } **${event.title}** ${event.environment ? `[${event.environment}]` : ``} + } **${payload.message || event.title}** ${ + event.environment ? `[${event.environment}]` : `` + } ${payload.culprit || ""}