-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli): consolidate and update backend error handling (#55)
* fix(cli): consolidate and repair backend error handling The same error handling code is copy-pasted all over the backend. Consolidate this code in 1 common error handler function so it's easier to update next time. Then, fixed the code that's not handling non-cfm-service errors correctly. Also, need to fix potential memory leaks that comes from NOT using "defer response.Body.Close()" after a call into cfm-service. * fix(cli): Remove unnecessary log message. * docs(cli): add function description * fix(cli): fix wrong variable name
- Loading branch information
1 parent
076d4b7
commit bf8b702
Showing
10 changed files
with
313 additions
and
599 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
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
Oops, something went wrong.