Improved 404 response message.

remotes/origin/enhancement/email-actions
Andrey Antukh 2014-05-13 18:11:42 +02:00
parent 9acddf613a
commit 6f64090904
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ def exception_handler(exc):
return Response(detail, status=exc.status_code, headers=headers)
elif isinstance(exc, Http404):
return Response({"_error_message": _("Not found")},
return Response({'_error_message': str(exc)},
status=status.HTTP_404_NOT_FOUND)
elif isinstance(exc, DjangoPermissionDenied):