David Kimura PRO said about 6 years ago on Custom Error Pages with Slack Notification :
It seems like `request.env['action_dispatch.show_detailed_exceptions']` is returning true or false instead of the actual messages.