Update error handling in some_service function

This commit is contained in:
Adam Bannister 2025-09-10 14:21:51 +02:00 committed by GitHub
parent aaf0f70565
commit 0b7d6f5f90
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():
raise ValidationError("Error message here.")
raise exceptions.ValidationError("Some message")
```
The response payload is going to look like this: