|
@@ -202,7 +202,10 @@ class BaseContext(ContextInterface):
|
202
|
202
|
# TODO BS 2018-05-04: How to be attentive to hierarchy ?
|
203
|
203
|
if isinstance(exc, handled_exception.exception_class):
|
204
|
204
|
error_builder = self.get_default_error_builder()
|
205
|
|
- error_body = error_builder.build_from_exception(exc)
|
|
205
|
+ error_body = error_builder.build_from_exception(
|
|
206
|
+ exc,
|
|
207
|
+ include_traceback=self.is_debug(),
|
|
208
|
+ )
|
206
|
209
|
return self.get_response(
|
207
|
210
|
json.dumps(error_body),
|
208
|
211
|
handled_exception.http_code,
|