Merge pull request #177 from AtomsForPeace/patch-1

Update error handling in some_service function
This commit is contained in:
Radoslav Georgiev 2025-09-25 14:25:18 +03:00 committed by GitHub
commit d43445abde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1613,7 +1613,7 @@ from rest_framework import exceptions
def some_service(): def some_service():
raise ValidationError("Error message here.") raise exceptions.ValidationError("Some message")
``` ```
The response payload is going to look like this: The response payload is going to look like this: