Comparing version 0.2.6 to 0.2.7
@@ -90,3 +90,3 @@ var HTTP_STATUS_CODES = require('http').STATUS_CODES; | ||
? ': ' + explanation[1] | ||
: ''; | ||
: ': ' + body; | ||
@@ -93,0 +93,0 @@ return callback(new Error( |
@@ -5,3 +5,3 @@ { | ||
"description": "Node.js client for airbrakeapp.com, formerly known as hoptoadapp.com.", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"homepage": "https://github.com/felixge/node-airbrake", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -60,3 +60,3 @@ # airbrake | ||
[2.1api]: http://help.airbrakeapp.com/kb/api-2/notifier-api-version-21 | ||
[2.1api]: http://help.airbrake.io/kb/api-2/notifier-api-version-21 | ||
@@ -147,3 +147,3 @@ ## Adding context to errors | ||
[deployment tracking]: http://help.airbrakeapp.com/kb/api-2/deploy-tracking | ||
[deployment tracking]: http://help.airbrake.io/kb/api-2/deploy-tracking | ||
@@ -150,0 +150,0 @@ ## API |
@@ -1,3 +0,1 @@ | ||
return console.log('disabled - airbrake returns success codes for this now?'); | ||
var common = require('../common'); | ||
@@ -9,3 +7,3 @@ var airbrake = require(common.dir.root).createClient(); | ||
airbrake.notify(myErr, function(err) { | ||
assert.ok(/api key/i.test(err.message)); | ||
assert.ok(/422/i.test(err.message)); | ||
}); |
85278
543