1
0
Fork 0
mirror of synced 2024-06-01 10:29:48 +12:00

Merge pull request #2544 from appwrite/fix-health-av-response

fix: throw exception when antivirus is not available
This commit is contained in:
Torsten Dittmann 2022-01-03 10:53:26 +01:00 committed by GitHub
commit d78c279b34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
}
}