guardian/frontend — pull request #134 by commuterjoy (2012-10-15 21:08:23+00:00)
Title: window.onerror handler (WIP)

Don't merge this to master just yet.

@ahume @phamann @mattandrews @ironsidevsquincy Any comments on this? It's a attempt to collect some information on client-side errors.

It currently logs to this server, http://gu-pix.appspot.com/json/count.json?path=/frontend/e/1

My only thought having written it this way is should it be stupider? Eg.

```
window.onerror = function(){
// log to server
}
```

... somewhere in the *commonJavaScriptSetup.scala.html* just to make sure we catch everything.