Skip to content

Commit 5fc6df5

Browse files
committed
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
1 parent b65729d commit 5fc6df5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Server.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,13 +230,14 @@ public function serve($salt = '')
230230

231231
echo $css;
232232

233-
return;
234233
} catch (\Exception $e) {
235234
header($protocol . ' 500 Internal Server Error');
236235
header('Content-type: text/plain');
237236

238237
echo 'Parse error: ' . $e->getMessage() . "\n";
239238
}
239+
240+
return;
240241
}
241242

242243
header('X-SCSS-Cache: true');

0 commit comments

Comments
 (0)