Commit efd164f6 authored by Bas de Nooijer's avatar Bas de Nooijer

Use exception instead of exit

parent c181994f
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
// Check phar.readonly ini setting // Check phar.readonly ini setting
if (ini_get('phar.readonly') == '1') { if (ini_get('phar.readonly') == '1') {
exit("Your php.ini has phar.readonly enabled. Phar cannot be created. Please alter your php.ini first.\n"); throw new \RuntimeException("Your php.ini has phar.readonly enabled. Phar cannot be created. Please alter your php.ini first.\n");
} }
// You can optionally use arguments to enable compression and whitespace/comment stripping. // You can optionally use arguments to enable compression and whitespace/comment stripping.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment