diff --git a/readme.md b/readme.md index 36cdc00..c2345bc 100644 --- a/readme.md +++ b/readme.md @@ -40,7 +40,10 @@ got('todomvc.com') .then(function (res) { console.log(res.body); }) - .catch(console.error); + .catch(function (err) { + console.error(err); + console.error(err.response && err.response.body); + }); // Stream mode got.stream('todomvc.com').pipe(fs.createWriteStream('index.html'));