Formats an error message as a Slack-style text payload.
The error message to include.
JSON string with a Slack text field.
text
Formats an error message as a Slack-style text payload.