From abbf036685497956e001329fbedad592cda50784 Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Fri, 31 Jan 2020 22:25:09 +0100 Subject: [PATCH] improve exception handling --- include/api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } -- 2.39.5