Skip to content

Commit cc3e894

Browse files
committed
Merge pull request leafo#233 from bgarret/patch-1
Fix the return value in case of a parse error
2 parents b65729d + 5fc6df5 commit cc3e894

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)