Error analysis and troubleshooting