Skip to content

Commit

Permalink
Add details to apns error
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBarba committed Dec 18, 2024
1 parent c5eafd1 commit a4e5477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class ApnsError extends Error {
notification: Notification
response: ApnsResponseError
}) {
super("APNS Error")
super(`APNS Error: ${props.statusCode} - ${props.response.reason}`)
this.statusCode = props.statusCode
this.notification = props.notification
this.response = props.response
Expand Down

0 comments on commit a4e5477

Please sign in to comment.