fix: throw exception when antivirus is not available

This commit is contained in:
Torsten Dittmann
2022-01-03 10:50:52 +01:00
parent a071cae7f0
commit 753824428a
+1 -2
View File
@@ -341,8 +341,7 @@ App::get('/v1/health/anti-virus')
$output['version'] = @$antivirus->version();
$output['status'] = (@$antivirus->ping()) ? 'pass' : 'fail';
} catch( \Exception $e) {
$output['status'] = 'offline';
$output['version'] = '';
throw new Exception('Antivirus is not available', 500);
}
}