diff --git a/doc/api/http.markdown b/doc/api/http.markdown index 6cecc821cf..e16d384b7a 100644 --- a/doc/api/http.markdown +++ b/doc/api/http.markdown @@ -396,6 +396,10 @@ Example: }); }); + req.on('error', function(e) { + console.log('problem with request: ' + e.message); + }); + // write data to request body req.write('data\n'); req.write('data\n');