Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENG-1825] Fix url formatting and exception handling (#9385)
## Purpose Unfortunately it turns out our URLField were essentially broken by our custom exception handling, so that their actual message wasn't getting passed, just the int 0. This meant there was no good way of telling whether a typical 400 validation error was cause by a URLField or any other field. This PR should fix this. ## Changes - changes to custom exception handler and add tests ## QA Notes This is ultimately going to extended by a front-end dev who will write the exact error text message. ## Documentation Bug fix, no docs. ## Side Effects None that I know of. ## Ticket https://openscience.atlassian.net/browse/ENG-1825
- Loading branch information
1 parent
9511666
commit 9521eea
Showing
2 changed files
with
48 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
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