Skip to content

Commit 7a357f3

Browse files
committed
More detailed error logging
1 parent af964e2 commit 7a357f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function sendRequest(namespace, text, level='INFO', options={}) {
5353
request(requestOptions).then((res) => {
5454
if (options.debug) console.log("PushNotice: Successfully sent Notification to PushNotice API");
5555
}).catch((err) => {
56-
if (options.debug) console.error("PushNotice: Error sending Notification to PushNotice API");
56+
if (options.debug) console.error("PushNotice: Error sending Notification to PushNotice API", err);
5757
});
5858
}
5959

0 commit comments

Comments
 (0)