-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Treat error response payloads from Slack as errors
As described in the "More error types" section below, Slack API can return errors with a 200 response code: https://slack.dev/node-slack-sdk/web-api#handle-errors This change adds parsing of API response to extract error messages. Signed-off-by: Anton Tolchanov <anton@tailscale.com>
- Loading branch information
Showing
2 changed files
with
113 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters