This website works better with JavaScript.
Home
Explore
Help
Sign In
brettlangdon
/
node-dogapi
mirror of
https://github.com/brettlangdon/node-dogapi.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
40
Wiki
Activity
Browse Source
prevent leaking "error" to global scope
pull/11/head
Fabian Jakobs
11 years ago
parent
331e550740
commit
ce8f310afd
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
lib/http_client.js
+ 1
- 1
lib/http_client.js
View File
@ -115,7 +115,7 @@ client.prototype.request = function(method, path, params, callback){
}
)
;
res
.
on
(
'end'
,
function
(
)
{
error
=
null
;
var
error
=
null
;
try
{
data
=
JSON
.
parse
(
data
)
;
}
catch
(
e
)
{
}
if
(
data
[
'errors'
]
)
{
error
=
data
[
'errors'
]
;
Write
Preview
Loading…
Cancel
Save