[advancedcontentfilter] Update HTTPException handling

This commit is contained in:
Hypolite Petovan 2020-03-10 18:44:27 -04:00
parent 8b17ea90c4
commit f2772b87c0
2 changed files with 3 additions and 3 deletions

View file

@ -30,7 +30,7 @@ $container['errorHandler'] = function () {
$responseCode = 500;
if (is_a($exception, 'Friendica\Network\HTTPException')) {
$responseCode = $exception->httpcode;
$responseCode = $exception->getCode();
}
$errors['message'] = $exception->getMessage();