Skip to content

Commit d3e4243

Browse files
committed
Updated error message
1 parent 20c7fb5 commit d3e4243

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rest_framework_json_api/parsers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ def parse(self, stream, media_type=None, parser_context=None):
4141
if isinstance(data, list):
4242
for resource_identifier_object in data:
4343
if not (resource_identifier_object.get('id') and resource_identifier_object.get('type')):
44-
raise ParseError('Received data contains a malformed JSONAPI Resource Identifier Object')
44+
raise ParseError(
45+
'Received data contains one or more malformed JSONAPI Resource Identifier Object(s)'
46+
)
4547
elif not (data.get('id') and data.get('type')):
4648
raise ParseError('Received data is not a valid JSONAPI Resource Identifier Object')
4749

0 commit comments

Comments
 (0)