Skip to content

Update error_status to HTTP status code 200 instead of 500, Update SASS error style #70

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 3 commits into from
May 15, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions sassutils/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class SassMiddleware(object):
"""

def __init__(self, app, manifests, package_dir={},
error_status='500 Internal Server Error'):
error_status='200 OK'):
if not callable(app):
raise TypeError('app must be a WSGI-compliant callable object, '
'not ' + repr(app))
Expand Down Expand Up @@ -143,7 +143,9 @@ def __call__(self, environ, start_response):
b'/*\n', str(e).encode('utf-8'), b'\n*/\n\n',
b'body:before { content: ',
self.quote_css_string(str(e)).encode('utf-8'),
b'; color: maroon; background-color: white; }'
b'; color: maroon; background-color: white',
b'; white-space: pre-wrap; display: block; ',
b'font-family: "Courier New", monospace; user-select: text; }'
]

def read_file(path):
Expand Down