Commit c441a1af by Simon János

on attribute vaidation error passing only exception message

parent 87cc9250
......@@ -33,7 +33,7 @@ class Resource(object):
try:
schema(attributes)
except MultipleInvalid as invalid:
raise InvalidResourceException(invalid)
raise InvalidResourceException(invalid.message)
@classmethod
def __schema(cls, resource_type=None, extend=False):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment