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.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/yaksh/error_messages.py b/yaksh/error_messages.py
index f2dc7c6..7a18c22 100644
--- a/yaksh/error_messages.py
+++ b/yaksh/error_messages.py
@@ -4,7 +4,8 @@ except ImportError:
from itertools import izip_longest as zip_longest
-def prettify_exceptions(exception, message, traceback=None, testcase=None):
+def prettify_exceptions(exception, message, traceback=None,
+ testcase=None, line_no=None):
err = {"type": "assertion",
"exception": exception,
"traceback": traceback,
@@ -22,6 +23,7 @@ def prettify_exceptions(exception, message, traceback=None, testcase=None):
err["message"] = value
err["traceback"] = None
err["test_case"] = testcase
+ err["line_no"] = line_no
return err