1
0
Fork 0
mirror of synced 2024-06-18 18:54:55 +12:00

use exception instead

This commit is contained in:
Damodar Lohani 2021-06-10 14:11:16 +05:45
parent 4563faedcb
commit f26b8f05f5

View file

@ -267,7 +267,7 @@ App::get('/v1/health/anti-virus')
'status' => (@$antiVirus->ping()) ? 'online' : 'offline',
'version' => @$antiVirus->version(),
]);
} catch( \RuntimeException $e) {
} catch( \Exception $e) {
$response->json([
'status' => 'offline',
'version' => '',