title: Is there a way to capture error message in chrome console
body: <p>Hi I need to grep error message from chrome console such as 404 file not found, not sure what api chrome is calling to throw error, but seems not <code>console.error</code>.
  I've tried to override <code>console.error</code>, but it doesn't work.</p>
  
  <pre><code>//this would not work for error thrown by browser.
  console.error=function(msg){
      alert(msg);
  }
  </code></pre>
  
  <p>ps. Not limited to using javascript.</p>