diff --git a/src/Composer/Console/Application.php b/src/Composer/Console/Application.php index 9b5a9ff15..c066ed9f2 100644 --- a/src/Composer/Console/Application.php +++ b/src/Composer/Console/Application.php @@ -160,7 +160,7 @@ class Application extends BaseApplication Silencer::call(function() { $tempfile = sys_get_temp_dir() . '/temp-' . md5(microtime()); if (!(file_put_contents($tempfile, __FILE__) && (file_get_contents($tempfile) == __FILE__) && unlink($tempfile) && !file_exists($tempfile))) { - throw new \RuntimeException(sprintf('PHP temp directory "%s" does not exist or is not writable to Composer - check sys_temp_dir in your php.ini', sys_get_temp_dir())); + $io->writeError(sprintf('PHP temp directory (%s) does not exist or is not writable to Composer. Set sys_temp_dir in your php.ini', sys_get_temp_dir())); } });