Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.

modified exception validation in serializer#392

Open
dwisulfahnur wants to merge 1 commit into
jpadilla:masterfrom
dwisulfahnur:master
Open

modified exception validation in serializer#392
dwisulfahnur wants to merge 1 commit into
jpadilla:masterfrom
dwisulfahnur:master

Conversation

@dwisulfahnur

Copy link
Copy Markdown

I modified errors format in serializer authentication process.
from using serializers exception (serializers.ValidationError(msg)) to using rest_framework exception (exceptions.AuthenticationFailed(msg))

{"detail": "msg error"}
it will give an error message that more readable than
{"non_field_errros":["msg error"]}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant