sqlalchemy-jsonapi icon indicating copy to clipboard operation
sqlalchemy-jsonapi copied to clipboard

raising an error class does not print the error details

Open ghost opened this issue 9 years ago • 1 comments

In a shell:

import errors
raise errors.ValidationError("foo")
---------------------------------------------------------------------------
ValidationError                           Traceback (most recent call last)
<ipython-input-11-464b5e215eb8> in <module>()
----> 1 raise errors.ValidationError("foo")

ValidationError:

This is because the error classes do not call the super constructor in their constructor overwrites. Do you have a reason to not call the super constructors there? I have fixed this locally so I can see what is actually going on when, e.g. a ValidationError was raised. When you are interested I can open a pull request with my fix.

ghost avatar Oct 14 '16 09:10 ghost

Hey there. I'm helping Colton get issues and PRs reviewed. I'd definitely be interested in seeing a patch.

Anderycks avatar Feb 24 '17 17:02 Anderycks