added exception detail

This commit is contained in:
a.feteleu 2019-11-04 11:18:16 +03:00
parent b37b634f59
commit 9dc12b36bb

View File

@ -113,7 +113,7 @@ class OAuth2SignUpView(OAuth2ViewMixin, JWTGenericViewMixin):
# Check OAuth2 response
if oauth2_status != status.HTTP_200_OK:
raise utils_exceptions.OAuth2Error()
raise utils_exceptions.OAuth2Error(detail=body)
# Get authenticated user
user = User.objects.by_oauth2_access_token(token=body.get('access_token'))\