|
|
@ -115,7 +115,7 @@ client.prototype.request = function(method, path, params, callback){ |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
res.on('end', function(){ |
|
|
res.on('end', function(){ |
|
|
error = null; |
|
|
|
|
|
|
|
|
var error = null; |
|
|
try{ data = JSON.parse(data); }catch(e){} |
|
|
try{ data = JSON.parse(data); }catch(e){} |
|
|
if(data['errors']){ |
|
|
if(data['errors']){ |
|
|
error = data['errors']; |
|
|
error = data['errors']; |
|
|
|