justicenation / slashclock

/clock concept as a new Slack app
GNU General Public License v3.0
0 stars 0 forks source link

Gracefully handle unknown errors #35

Closed martyychang closed 6 years ago

martyychang commented 6 years ago

This pr adds the ability to gracefully handle unknown errors. Previously when an unhandled exception was thrown either trying to load or to execute a slash command, an HTTP 500 error was returned to Slack resulting in a very nasty message being displayed to the user. Now, a friendly message is displayed like the one below.

image