mirror of https://github.com/zulip/zulip.git
Add more information to error message
(imported from commit 0917d5c2ed1b156603ce53aaec88ecbe26f5f39c)
This commit is contained in:
parent
c4d35280ea
commit
7a305c1882
|
@ -396,7 +396,7 @@ def send_message_backend(request, user_profile, sender):
|
||||||
else:
|
else:
|
||||||
# This is actually a personal message
|
# This is actually a personal message
|
||||||
if not User.objects.filter(email=recipient_data):
|
if not User.objects.filter(email=recipient_data):
|
||||||
return json_error("Invalid email")
|
return json_error("Invalid email '%s'" % (recipient_data))
|
||||||
|
|
||||||
recipient_user = User.objects.get(email=recipient_data)
|
recipient_user = User.objects.get(email=recipient_data)
|
||||||
recipient_user_profile = UserProfile.objects.get(user=recipient_user)
|
recipient_user_profile = UserProfile.objects.get(user=recipient_user)
|
||||||
|
|
Loading…
Reference in New Issue