Fixes on exception catching for SysGeneric

This commit is contained in:
@sinedrik
2013-08-23 13:23:19 -04:00
parent 9e001777ba
commit 7ddabbad91
4 changed files with 90 additions and 58 deletions

View File

@@ -3057,15 +3057,15 @@ class Bootstrap
if (! is_dir(PATH_TRUNK . 'vendor')) {
if (file_exists(PATH_TRUNK . 'composer.phar')) {
throw new Exception(
"ERROR: Verdors are missing!\n" .
"Please execute the following command to install vendors for the environment:\n" .
"ERROR: Verdors are missing!" . PHP_EOL .
"Please execute the following command to install vendors:" .PHP_EOL.PHP_EOL.
"$>php composer.phar install"
);
} else {
throw new Exception(
"ERROR: Verdors are missing!\n" .
"Please execute the following commands to prepare/install vendors for the environment:\n" .
"$>curl -sS https://getcomposer.org/installer | php\n" .
"ERROR: Verdors are missing!" . PHP_EOL .
"Please execute the following commands to prepare/install vendors:" .PHP_EOL.PHP_EOL.
"$>curl -sS https://getcomposer.org/installer | php" . PHP_EOL .
"$>php composer.phar install"
);
}