aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/decorators.py
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2018-07-28 20:17:54 +0200
committerGravatar Leon Sandøy <[email protected]>2018-07-28 20:17:54 +0200
commitb4d024dc69e9084184f628daeb48d6601a3996e2 (patch)
tree06e5ca6f40dc57b0b90a12b2a20592e1b748ccf9 /pysite/decorators.py
parentNow doing role colorization instead of random colors for the cleanlog template. (diff)
parentFix typo in infractions table definition (diff)
Merge branch 'master' into clean_command
Diffstat (limited to 'pysite/decorators.py')
-rw-r--r--pysite/decorators.py4
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)