title: Output full error object in node.js
body: <p>There are several places where error objects are used, like when you catch errors or in the case of exec an error object can be passed back by a child process.  When you attempt to log that information, not quite all of it makes it out.</p>
  
  <p>I've tried the following:</p>
  
  <pre><code>console.log(error);
  console.log(error.stack);
  console.log(util.inpect(error, true, null));
  </code></pre>
  
  <p>All these options seem to output a different set of incomplete data.  Is there a one line way to make sure I always get all the data I need to see from errors displayed or do I need to use all three of these lines (are there even more statements I need to add?)?</p>