1
0
Fork 0

Point users at troubleshooting if they get known exceptions

pull/3538/merge
Jordi Boggiano 2014-12-13 11:47:22 +00:00
parent 07ad1da3ac
commit aec1af4e11
1 changed files with 10 additions and 0 deletions

View File

@ -191,6 +191,16 @@ class Application extends BaseApplication
} catch (\Exception $e) { } catch (\Exception $e) {
} }
if (defined('PHP_WINDOWS_VERSION_BUILD') && false !== strpos($exception->getMessage(), 'The system cannot find the path specified')) {
$output->writeln('<error>The following exception may be caused by a stale entry in your cmd.exe AutoRun</error>');
$output->writeln('<error>Check https://getcomposer.org/doc/articles/troubleshooting.md#-the-system-cannot-find-the-path-specified-windows- for details</error>');
}
if (false !== strpos($exception->getMessage(), 'fork failed - Cannot allocate memory')) {
$output->writeln('<error>The following exception is caused by a lack of memory and not having swap configured</error>');
$output->writeln('<error>Check https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors for details</error>');
}
return parent::renderException($exception, $output); return parent::renderException($exception, $output);
} }