doc: check for errors in 'listen' event
authorBenjamin Gruenbaum <inglor@gmail.com>
Sun, 24 Jan 2016 09:35:35 +0000 (11:35 +0200)
committerMyles Borins <mborins@us.ibm.com>
Wed, 2 Mar 2016 22:01:11 +0000 (14:01 -0800)
commit70e5d89a0a92747cf784913ec841c75ebefa1f0b
treee4035283e692af0d079f3f2aaed1ca26e5a3b241
parent90e0197706306529930953fbadcb6d61d59747d6
doc: check for errors in 'listen' event

In the docs we typically check for errors and surface them. This
is IMO a good idea and good practice. This PR adds a check for
errors in three places in the `net` docs where it was missing.

PR-URL: https://github.com/nodejs/node/pull/4834
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Roman Klauke <romaaan.git@gmail.com>>
doc/api/net.markdown