aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/bb/utils.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/bb/utils.py b/lib/bb/utils.py
index d5028e19..986f94f3 100644
--- a/lib/bb/utils.py
+++ b/lib/bb/utils.py
@@ -297,10 +297,12 @@ def _print_trace(body, line):
"""
# print the environment of the method
min_line = max(1, line-4)
- max_line = min(line + 4, len(body)-1)
+ max_line = min(line + 4, len(body))
for i in xrange(min_line, max_line + 1):
- logger.error("\t%.4d:%s", i, body[i-1])
-
+ if line == i:
+ logger.error(' *** %.4d:%s', i, body[i-1])
+ else:
+ logger.error(' %.4d:%s', i, body[i-1])
def better_compile(text, file, realfile, mode = "exec"):
"""