summaryrefslogtreecommitdiff
path: root/yaksh/error_messages.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/error_messages.py')
-rw-r--r--yaksh/error_messages.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yaksh/error_messages.py b/yaksh/error_messages.py
index 77bb1c9..7ea8618 100644
--- a/yaksh/error_messages.py
+++ b/yaksh/error_messages.py
@@ -9,8 +9,9 @@ def prettify_exceptions(exception, message, traceback=None, testcase=None):
"traceback": traceback,
"message": message
}
- if traceback and traceback.count('\n') > 6:
+ if exception == 'RuntimeError' or exception == 'RecursionError':
err["traceback"] = None
+
if exception == 'AssertionError':
value = ("Expected answer from the"
+ " test case did not match the output")