Skip to content

Commit

Permalink
Reduced error description details
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoretto committed Apr 3, 2018
1 parent d7adbe7 commit 4ceac4d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions eve/io/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,13 +474,7 @@ def _datasource_ex(self, resource, query=None, client_projection=None,
self.app.data.get_value_from_query(
query, auth_field) != request_auth_value:
desc = 'Incompatible User-Restricted Resource ' \
'request. Request was for "%s"="%s" but ' \
'`auth_field` requires "%s"="%s".' % (
auth_field,
self.app.data.get_value_from_query(
query, auth_field),
auth_field,
request_auth_value)
'request.'
abort(401, description=desc)
else:
query = self.app.data.combine_queries(
Expand Down

0 comments on commit 4ceac4d

Please sign in to comment.