Error reporting system for web applications