Skip to content

Commit

Permalink
fix then data.toString is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
NumminorihSF committed Jun 14, 2016
1 parent 15b88af commit 474a359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion both-formatter/text/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = function(syncWrapper){
}
if (data.toString === Object.prototype.toString) return cb(null,syncWrapper.object(data));
if (data.toString instanceof Function) return cb(null, '<pre>'+data.toString()+'</pre>');
return cb(null, '<pre>'+Object.prototype.toString.call(data)+'</pre>');
return cb(null, '<pre>'+JSON.stringify(data, null, 2)+'</pre>');
}
};
return formats;
Expand Down

0 comments on commit 474a359

Please sign in to comment.