forked from dasrick/go-teams-notify
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remote API error handling: expose response string
Extend error handling by retrieving and providing the response string from the remote API as part of the error message returned to the caller if the status code indicates an error condition. Based on testing, the response string contains useful troubleshooting information which can help identify missing information in the submitted MessageCard payload. --- Note: This commit contains example `logger` object calls to illustrate the proposed changes mentioned in #10. Before the associated PR would be merged, those `logger` calls would be removed and implemented as part of a separate PR specific to #10. refs #10, #6 (loosely)
- Loading branch information
Showing
1 changed file
with
39 additions
and
1 deletion.
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