Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 7943a81

Browse files
committed
Update error_status to HTTP status code 200 instead of 500, Update SASS error style
1 parent 08baa8f commit 7943a81

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sassutils/wsgi.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class SassMiddleware(object):
9292
"""
9393

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

149151
def read_file(path):

0 commit comments

Comments
 (0)