summaryrefslogtreecommitdiff
path: root/scss/errors.py
diff options
context:
space:
mode:
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"