aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/decorators.py
diff options
context:
space:
mode:
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)