Skip to content

Commit

Permalink
Merge branch 'captures-bad-env-error' of https://github.com/citricsqu…
Browse files Browse the repository at this point in the history
…id/framework into citricsquid-captures-bad-env-error
  • Loading branch information
taylorotwell committed Feb 14, 2018
2 parents e0cf00f + e640944 commit 639e8c5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Illuminate\Foundation\Bootstrap;

use Dotenv\Dotenv;
use Dotenv\Exception\InvalidFileException;
use Dotenv\Exception\InvalidPathException;
use Symfony\Component\Console\Input\ArgvInput;
use Illuminate\Contracts\Foundation\Application;
Expand All @@ -27,6 +28,8 @@ public function bootstrap(Application $app)
(new Dotenv($app->environmentPath(), $app->environmentFile()))->load();
} catch (InvalidPathException $e) {
//
} catch (InvalidFileException $e) {
dd('Fatal Error: Values in .env containing spaces must be surrounded by quotes.');
}
}

Expand Down

0 comments on commit 639e8c5

Please sign in to comment.