Skip to content

Commit 4585f7d

Browse files
committed
Use exit code > 0 to trigger error on Travis
1 parent dc0298d commit 4585f7d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

bootstrap/bootstrap.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@
1212
$vendorDir = realpath(__DIR__.'/../../..');
1313

1414
if (!$loader = include $vendorDir.'/autoload.php') {
15-
$nl = PHP_SAPI === 'cli' ? PHP_EOL : '<br />';
16-
echo "$nl$nl";
17-
die('You must set up the project dependencies.'.$nl.
18-
'Run the following commands in '.dirname(__DIR__).':'.$nl.$nl.
15+
$nl = 'cli' === substr(PHP_SAPI, 0, 3) ? PHP_EOL : '<br />';
16+
echo $nl.$nl.
17+
'You must set up the project dependencies.'.$nl.
18+
'Run the following commands in '.dirname($vendorDir).':'.$nl.$nl.
1919
'curl -s http://getcomposer.org/installer | php'.$nl.
20-
'php composer.phar install'.$nl);
20+
'php composer.phar install'.$nl;
21+
exit(1);
2122
}
2223

2324
use Doctrine\Common\Annotations\AnnotationRegistry;

0 commit comments

Comments
 (0)