Implement error reporting