summaryrefslogtreecommitdiff
path: root/scss/errors.py
diff options
context:
space:
mode:
authorEevee (Alex Munroe) <eevee.git@veekun.com>2013-08-19 17:25:46 -0700
committerEevee (Alex Munroe) <eevee.git@veekun.com>2013-08-19 17:25:46 -0700
commitd1cb4b5bbf3e9629052a433dc210514c3dcf3cb1 (patch)
treedc907eac9e56fe78fbbd461abbdc9e82cd7c1433 /scss/errors.py
parent03628c2b0b7841506fb0e0d8e5b5c60f2069e143 (diff)
downloadpyscss-d1cb4b5bbf3e9629052a433dc210514c3dcf3cb1.tar.gz
Fix bug in error printing. Make evaluate_expression use parse_expression.
Diffstat (limited to 'scss/errors.py')
-rw-r--r--scss/errors.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scss/errors.py b/scss/errors.py
index e06bc87..c898500 100644
--- a/scss/errors.py
+++ b/scss/errors.py
@@ -48,8 +48,8 @@ class SassError(Exception):
def format_prefix(self):
# TODO this contains NULs and line numbers; could be much prettier
- if self.rule:
- return "Error parsing block:\n" + " " + self.rule.unparsed_contents
+ if self.rule_stack:
+ return "Error parsing block:\n" + " " + self.rule_stack[0].unparsed_contents
else:
return "Unknown error"