ToothlessGear / node-gcm

A NodeJS wrapper library port to send data to Android devices via Google Cloud Messaging
https://github.com/ToothlessGear/node-gcm
Other
1.3k stars 206 forks source link

fix: handle non-http errors correctly (#375) #376

Closed silentjohnny closed 1 year ago

silentjohnny commented 1 year ago

Added a check for result property present in error, otherwise call back with error instance.

eladnava commented 1 year ago

Thanks for catching this and submitting a PR @silentjohnny!

Merged and published to npm as 1.1.1. 🎉