Merge pull request #2544 from appwrite/fix-health-av-response
fix: throw exception when antivirus is not available
This commit is contained in:
commit
d78c279b34
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue