Skip to content

Commit

Permalink
chore: add decodeBodyByCharset error debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Jul 23, 2015
1 parent c18188b commit 539acb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/urllib.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,8 @@ exports.requestWithCallback = function (url, args, callback) {
// try to decode charset
try {
data = decodeBodyByCharset(data, res);
} catch (_) {
} catch (e) {
debug('decodeBodyByCharset error: %s', e);
// if error, dont touch it
return done(null, data, res);
}
Expand Down

0 comments on commit 539acb5

Please sign in to comment.