sparc-commons
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -39,2 +39,3 @@ /*jshint multistr: true */ | ||
requestResource: function requestResource(target, service, opts){ | ||
console.log("PIPPO"); | ||
var self = this; | ||
@@ -77,3 +78,3 @@ if(_.isUndefined(service)){ | ||
} else { | ||
var myError = new Error("Resource " + target + " replied with " + resp.statusCode + " when requesting " + service + ". The url is " + url + " and the data " + JSON.stringify(data)); | ||
var myError = new Error("Resource " + target + " replied with " + resp.statusCode + " when requesting " + service + ". The url is " + url + " and options are " + JSON.stringify(opts)); | ||
myError.statusCode = resp.statusCode; | ||
@@ -80,0 +81,0 @@ rej(myError); |
{ | ||
"name": "sparc-commons", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Library with all small time common stuff used across the SPARC echosystem", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
25369
594