Skip to main content

handling-transaction-errors

Facilitates robust transaction error handling with P-code checks and timeout configurations for seamless database operations.

Install this skill

or
60/100

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

medium line 28

Template literal with variable interpolation in command context

SourceSKILL.md
28console.error(`Transaction failed: ${error.code}`);
medium line 53

Template literal with variable interpolation in command context

SourceSKILL.md
53throw new Error(`Unique constraint failed on: ${target.join(', ')}`);
medium line 88

Template literal with variable interpolation in command context

SourceSKILL.md
88`Unique constraint violation: ${error.meta?.target}`
medium line 95

Template literal with variable interpolation in command context

SourceSKILL.md
95return new Error(`Database error: ${error.code}`);
medium line 214

Template literal with variable interpolation in command context

SourceSKILL.md
214throw new Error(`Transaction failed after ${maxRetries} retries: ${lastError?.message}`);
medium line 472

Template literal with variable interpolation in command context

SourceSKILL.md
472console.error(`Database error ${error.code}: ${error.message}`);
medium line 485

Template literal with variable interpolation in command context

SourceSKILL.md
485await tx.log.create({ data: { message: `Log ${i}` } });
medium line 496

Template literal with variable interpolation in command context

SourceSKILL.md
496message: `Log ${i}`,
Scanned on Feb 12, 2026
View Security Dashboard
Installation guide →