diff options
| author | 2018-07-28 20:17:54 +0200 | |
|---|---|---|
| committer | 2018-07-28 20:17:54 +0200 | |
| commit | b4d024dc69e9084184f628daeb48d6601a3996e2 (patch) | |
| tree | 06e5ca6f40dc57b0b90a12b2a20592e1b748ccf9 /pysite/decorators.py | |
| parent | Now doing role colorization instead of random colors for the cleanlog template. (diff) | |
| parent | Fix typo in infractions table definition (diff) | |
Merge branch 'master' into clean_command
Diffstat (limited to 'pysite/decorators.py')
| -rw-r--r-- | pysite/decorators.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pysite/decorators.py b/pysite/decorators.py index de914c6f..fbfb90f8 100644 --- a/pysite/decorators.py +++ b/pysite/decorators.py @@ -141,8 +141,8 @@ def api_params( try: schema.validate(data) - except SchemaError: - return self.error(ErrorCodes.incorrect_parameters) + except SchemaError as e: + return self.error(ErrorCodes.incorrect_parameters, str(e)) return f(self, data, *args, **kwargs) |