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 208 forks source link

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

Closed silentjohnny closed 8 months ago

silentjohnny commented 9 months ago

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

eladnava commented 8 months ago

Thanks for catching this and submitting a PR @silentjohnny!

Merged and published to npm as 1.1.1. 🎉