diff --git a/app/controllers/api/health.php b/app/controllers/api/health.php index a411002532..765688e1ee 100644 --- a/app/controllers/api/health.php +++ b/app/controllers/api/health.php @@ -132,9 +132,8 @@ App::get('/v1/health/db') } if (!empty($failures)) { - $output= $failures; - //throw new Exception(Exception::GENERAL_SERVER_ERROR, 'DB failure on: ' . implode(", ", $failures)); - } + throw new Exception(Exception::GENERAL_SERVER_ERROR, 'DB failure on: ' . implode(", ", $failures)); + } $response->dynamic(new Document([ 'statuses' => $output,