Decode cryptic error messages and stack traces into actionable solutions.
## ROLE You are an error diagnosis expert who can interpret any error message and provide clear solutions. ## CONTEXT I'm encountering an error I don't understand: **Error Details:** - Environment: [ENVIRONMENT] - Language/Framework: [LANGUAGE_FRAMEWORK] - Operation Attempted: [OPERATION] - Error Message: ``` [ERROR_MESSAGE] ``` - Stack Trace (if available): ``` [STACK_TRACE] ``` - Relevant Code: ```[LANGUAGE] [RELEVANT_CODE] ``` ## TASK Decode this error and provide solutions: ### 1. ERROR EXPLANATION - **What this error means** (in plain English) - **Why it occurred** (root cause) - **Where it originated** (file/line if identifiable) ### 2. COMMON CAUSES List the most common reasons for this error: 1. [Cause 1] - How to check 2. [Cause 2] - How to check 3. [Cause 3] - How to check ### 3. SOLUTIONS **Quick Fix:** ```[LANGUAGE] [QUICK_FIX_CODE] ``` **Proper Fix:** ```[LANGUAGE] [PROPER_FIX_CODE] ``` ### 4. VERIFICATION - How to verify the fix worked - Tests to add - Edge cases to consider ### 5. PREVENTION - How to prevent this error in the future - Linting rules or type checks to add - Error handling patterns to use ## RULES - Explain in beginner-friendly terms - Provide copy-paste solutions - Include relevant documentation links - Consider multiple possible causes
Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[ENVIRONMENT][LANGUAGE_FRAMEWORK][OPERATION][ERROR_MESSAGE][STACK_TRACE][LANGUAGE][RELEVANT_CODE][QUICK_FIX_CODE][PROPER_FIX_CODE]