-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(backend): better error handling in backend (#277)
Add specific messages if Github settings were not added and change some status codes in backend ### What Some errors raised by backend have a 500 status code intead of having 4XX error. For example, if a developer forgets to add a Personal Access Token and wants to import a project to edit, the server throws a 500 error instead of 400 error. ### Screenshot ![image](https://github.com/openfoodfacts/taxonomy-editor/assets/106757110/e0c24f5a-9de7-47b1-a31b-20741729df8b) ### Fixes bug(s) ### Part of - backend/editor --------- Co-authored-by: alice.juan <[email protected]>
- Loading branch information
Showing
2 changed files
with
53 additions
and
21 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