summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask/core')
-rw-r--r--src/leap/bitmask/core/dispatcher.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/leap/bitmask/core/dispatcher.py b/src/leap/bitmask/core/dispatcher.py
index 9d486009..52de62b6 100644
--- a/src/leap/bitmask/core/dispatcher.py
+++ b/src/leap/bitmask/core/dispatcher.py
@@ -537,10 +537,12 @@ def _format_error(failure):
"""
Logs the failure backtrace, and returns a json containing the error
message.
- """
- # If a exception declares the 'expected' attribute as True,
- # we will not print a full traceback
+ If a exception declares the 'expected' attribute as True,
+ we will not print a full traceback. instead, we will dispatch
+ the ``exception`` message attribute as the ``error`` field in the response
+ json.
+ """
expected = getattr(failure.value, 'expected', False)
if not expected: