Error reporting module for AngularJS