From: nupplaPhil Date: Fri, 31 Jan 2020 21:25:09 +0000 (+0100) Subject: improve exception handling X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=abbf036685497956e001329fbedad592cda50784;p=friendica.git improve exception handling --- diff --git a/include/api.php b/include/api.php index b21061646a..c9402d46d0 100644 --- a/include/api.php +++ b/include/api.php @@ -5972,9 +5972,9 @@ function api_friendica_notification_seen($type) } return api_format_data('result', $type, ['result' => "success"]); } catch (NotFoundException $e) { - throw new BadRequestException('Invalid argument'); + throw new BadRequestException('Invalid argument', $e); } catch (Exception $e) { - throw new InternalServerErrorException('Internal Server exception'); + throw new InternalServerErrorException('Internal Server exception', $e); } }