Skip to content

Improve the formatting of CompileErrors in py3 #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 21, 2016
Merged

Improve the formatting of CompileErrors in py3 #123

merged 1 commit into from
Feb 21, 2016

Conversation

asottile
Copy link
Member

Before you'd get sadness like this:

>>> sass.compile(string='a{')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/asottile/workspace/libsass-python/sass.py", line 648, in compile
    raise CompileError(v)
sass.CompileError: b'Error: Invalid CSS after "a{": expected "}", was ""\n        on line 1 of stdin\n>> a{\n   -^\n'

dahlia added a commit that referenced this pull request Feb 21, 2016
Improve the formatting of CompileErrors in py3
@dahlia dahlia merged commit c84f25c into sass:python Feb 21, 2016
@dahlia
Copy link
Member

dahlia commented Feb 21, 2016

👍

@asottile asottile deleted the improve_exceptions_py3 branch February 21, 2016 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants