-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that >400 level HTTP errors are properly handled
Fixes: #1072 We discovored that the API endpoint to get an enketo edit url encountered >400 level errors it did not properly set the HTTP status code and instead returned the edit url as false. This set of commits fixes that by raising an EnketoError exception which has a friendly default error message that can be overriden.
- Loading branch information
1 parent
8614c5b
commit cc7fe7f
Showing
3 changed files
with
30 additions
and
6 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