pushover-notifications
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -137,3 +137,3 @@ var fs = require('fs') | ||
} catch (error) { | ||
throw new Error('JSON parsing failed', res) | ||
this.onerror(error, res) | ||
} | ||
@@ -146,2 +146,3 @@ } | ||
} else { | ||
// If no onerror was provided throw our error | ||
throw new Error(d.errors[0], res) | ||
@@ -148,0 +149,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description": "Pushover API for node.js", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"homepage": "http://github.com/qbit/node-pushover", | ||
@@ -8,0 +8,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
245992
16
401
17