Skip to content

Commit

Permalink
Adds backwards compatible error checking
Browse files Browse the repository at this point in the history
  • Loading branch information
shrink committed Feb 13, 2018
1 parent 7a3635a commit e640944
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ public function bootstrap(Application $app)

try {
(new Dotenv($app->environmentPath(), $app->environmentFile()))->load();
} catch (InvalidPathException | InvalidFileException $e) {
} 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 e640944

Please sign in to comment.