handling-transaction-errors
Facilitates robust transaction error handling with P-code checks and timeout configurations for seamless database operations.
Install this skill
Security score
The handling-transaction-errors skill was audited on Feb 12, 2026 and we found 8 security issues across 1 threat category. Review the findings below before installing.
Categories Tested
Security Issues
Template literal with variable interpolation in command context
| 28 | console.error(`Transaction failed: ${error.code}`); |
Template literal with variable interpolation in command context
| 53 | throw new Error(`Unique constraint failed on: ${target.join(', ')}`); |
Template literal with variable interpolation in command context
| 88 | `Unique constraint violation: ${error.meta?.target}` |
Template literal with variable interpolation in command context
| 95 | return new Error(`Database error: ${error.code}`); |
Template literal with variable interpolation in command context
| 214 | throw new Error(`Transaction failed after ${maxRetries} retries: ${lastError?.message}`); |
Template literal with variable interpolation in command context
| 472 | console.error(`Database error ${error.code}: ${error.message}`); |
Template literal with variable interpolation in command context
| 485 | await tx.log.create({ data: { message: `Log ${i}` } }); |
Template literal with variable interpolation in command context
| 496 | message: `Log ${i}`, |