Skip to content

Commit

Permalink
FIX Ensure delegated requests are continued when DB builds fail in mi…
Browse files Browse the repository at this point in the history
…ddleware
  • Loading branch information
robbieaverill committed Sep 7, 2017
1 parent adfa725 commit 56accd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/Middleware/InitStateMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public function process(HTTPRequest $request, callable $delegate)

return $delegate($request);
} catch (DatabaseException $ex) {
// No-op, database is not ready
// Database is not ready
return $delegate($request);
} finally {
// Persist to the session if using the CMS
if ($state->getUseSessions()) {
Expand Down

0 comments on commit 56accd0

Please sign in to comment.