From 5fc6df555cff96e7992b2fd8aaa4452efa3861c5 Mon Sep 17 00:00:00 2001 From: Benoit Garret Date: Mon, 26 Jan 2015 12:14:54 +0100 Subject: [PATCH] Fix the return value in case of a parse error Without the return, the server renders a 304 Not Modified if there's an error --- src/Server.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Server.php b/src/Server.php index 81d1e382..f5333ee9 100644 --- a/src/Server.php +++ b/src/Server.php @@ -230,13 +230,14 @@ public function serve($salt = '') echo $css; - return; } catch (\Exception $e) { header($protocol . ' 500 Internal Server Error'); header('Content-type: text/plain'); echo 'Parse error: ' . $e->getMessage() . "\n"; } + + return; } header('X-SCSS-Cache: true');