summaryrefslogtreecommitdiff
path: root/paste/exceptions
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-05-08 07:10:34 +0000
committerianb <devnull@localhost>2005-05-08 07:10:34 +0000
commit6f64d5c821ec23332e6f357da83ce18ca654e373 (patch)
tree99248878d4db2ebba7841f43cd294c639f3af6b5 /paste/exceptions
parent027fae18fbcbf7644a0ba857471cca7034a9fd9f (diff)
downloadpaste-6f64d5c821ec23332e6f357da83ce18ca654e373.tar.gz
Some minor problems in features that ZPT exceptions use
Diffstat (limited to 'paste/exceptions')
-rw-r--r--paste/exceptions/formatter.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/paste/exceptions/formatter.py b/paste/exceptions/formatter.py
index 794123f..97da7ab 100644
--- a/paste/exceptions/formatter.py
+++ b/paste/exceptions/formatter.py
@@ -46,7 +46,7 @@ class AbstractFormatter:
general_data[('important', 'source_url')] = self.format_sup_url(
sup.source_url)
if sup.line:
- lines.append(self.format_sup_line_pos(self.line, self.column))
+ lines.append(self.format_sup_line_pos(sup.line, sup.column))
if sup.expression:
lines.append(self.format_sup_expression(sup.expression))
if sup.warnings:
@@ -116,8 +116,8 @@ class TextFormatter(AbstractFormatter):
return s
def emphasize(self, s):
return s
- def format_sup_object(self, name):
- return 'In object: %s' % self.quote(name)
+ def format_sup_object(self, obj):
+ return 'In object: %s' % self.quote(repr(obj))
def format_sup_url(self, url):
return 'URL: %s' % self.quote(url)
def format_sup_line_pos(self, line, column):