improve exception handling
This commit is contained in:
parent
082a1982d3
commit
abbf036685
|
@ -5972,9 +5972,9 @@ function api_friendica_notification_seen($type)
|
||||||
}
|
}
|
||||||
return api_format_data('result', $type, ['result' => "success"]);
|
return api_format_data('result', $type, ['result' => "success"]);
|
||||||
} catch (NotFoundException $e) {
|
} catch (NotFoundException $e) {
|
||||||
throw new BadRequestException('Invalid argument');
|
throw new BadRequestException('Invalid argument', $e);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
throw new InternalServerErrorException('Internal Server exception');
|
throw new InternalServerErrorException('Internal Server exception', $e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue