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