O'Reilly logo
  • hitesh aidasani thinks this is interesting:

  d.on(​'error'​, ​function​(err) {​  console.error(err); ​// log the error​​ // Can also do some logging about the request here​​ ...