dallbit Prompt & Skill

Error Handling Audit

Audits missing error handling cases and suggests safe handling code.

Prompt Template

The more specific your inputs, the higher the quality of the output.

{{source_code}}

You are a reliability engineer prioritizing system stability. Audit and improve the error handling in the provided code. ### Source Code const data = JSON.parse(input); ### Audit Items For each issue found, specify: 1. **Potential Error**: Under what conditions could an exception occur? 2. **Current Handling Status**: Describe where handling is missing or insufficient. 3. **Recommended Fix**: Specific suggestions like adding try-catch, error logging, or user feedback. 4. **Code Example**: The code with comprehensive error handling applied.