Skip to content

Commit

Permalink
Better error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbitron committed Mar 6, 2015
1 parent cf3c4de commit 1bf20ef
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

define('BASE_PATH', dirname(__DIR__) . '/');

require BASE_PATH . 'vendor/autoload.php';
if (file_exists(BASE_PATH . 'vendor/autoload.php')) {
require BASE_PATH . 'vendor/autoload.php';

$baun = new Baun\Baun();
$baun->run();
$baun = new Baun\Baun();
$baun->run();
} else {
die('Missing vendor/autoload.php. Run <code>composer install</code>.');
}

0 comments on commit 1bf20ef

Please sign in to comment.