Skip to content

Commit

Permalink
Error handling example typo fixes
Browse files Browse the repository at this point in the history
There were few typo's in the error handling example
  • Loading branch information
chamathpali authored and jeromegamez committed Nov 6, 2023
1 parent de52ff7 commit 464e2eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/cloud-messaging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -877,10 +877,10 @@ Error handling example
try {
$messaging->send($message);
catch (MessagingErrors\NotFound $e) {
echo 'The target device could not be found: ';
} catch (MessagingErrors\NotFound $e) {
echo 'The target device could not be found.';
} catch (MessagingErrors\InvalidMessage $e) {
echo 'The given message is malformatted.'
echo 'The given message is malformatted.';
} catch (MessagingErrors\ServerUnavailable $e) {
$retryAfter = $e->retryAfter();
Expand All @@ -893,7 +893,7 @@ Error handling example
$messaging->send($message);
} catch (MessagingErrors\ServerError $e) {
echo 'The FCM servers are down.'
echo 'The FCM servers are down.';
} catch (MessagingException $e) {
// Fallback handling
echo 'Unable to send message: '.$e->getMessage();
Expand Down

0 comments on commit 464e2eb

Please sign in to comment.