Skip to content

Commit

Permalink
change one error message
Browse files Browse the repository at this point in the history
  • Loading branch information
budlight committed Apr 6, 2020
1 parent abc45b6 commit 4ec3b05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drfpasswordless/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,11 @@ def validate(self, attrs):
msg = _('Invalid Token')
raise serializers.ValidationError(msg)
except User.DoesNotExist:
msg = _('Invalid alias parameters provided.')
msg = _('Invalid user alias parameters provided.')
raise serializers.ValidationError(msg)
except ValidationError:
msg = _('Invalid alias parameters provided.')
raise
raise serializers.ValidationError(msg)


Expand Down

0 comments on commit 4ec3b05

Please sign in to comment.