From a4e5477b6b912283b30f7a33efdc729829318ce0 Mon Sep 17 00:00:00 2001 From: Andrew Barba Date: Wed, 18 Dec 2024 10:41:04 -0500 Subject: [PATCH] Add details to apns error --- src/errors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/errors.ts b/src/errors.ts index 6238480..0dc0cb1 100644 --- a/src/errors.ts +++ b/src/errors.ts @@ -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