From f8c74918dc58bedee9229d14550cc8eb9633597d Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Mon, 3 Nov 2014 16:38:25 -0200 Subject: [PATCH] Avoiding confusion --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 681f00607..94b633506 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ To easily handle errors when streaming requests, listen to the `error` event bef request .get('http://mysite.com/doodle.png') .on('error', function(err) { - handleError(err) + console.log(err) }) .pipe(fs.createWriteStream('doodle.png')) ```