diff --git a/makephar.php b/makephar.php index 09d7363ef..4a819149b 100755 --- a/makephar.php +++ b/makephar.php @@ -26,7 +26,8 @@ $p->addFromString('.git/refs/heads/master', $argv[3]); $p->setStub('load(); } if (getenv('TEST_SECRET_CHAT') == '') { - die('TEST_SECRET_CHAT is not defined in .env, please define it (copy .env.example).'.PHP_EOL); + echo('TEST_SECRET_CHAT is not defined in .env, please define it (copy .env.example).'.PHP_EOL); + die(1); } echo 'Loading settings...'.PHP_EOL; $settings = json_decode(getenv('MTPROTO_SETTINGS'), true) ?: [];