use-error-info

Preserve and log error data in try/catch blocks and Result patterns.

3|1|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/ncaq/konoka --skill use-error-info
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: use-error-info
Source: https://github.com/ncaq/konoka/tree/main/plugins/programming-tasuke/skills/use-error-info
Command: npx skills add https://github.com/ncaq/konoka --skill use-error-info

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Error handling often discards useful context, making debugging harder and slowing down resolution. This Skill ensures error data is captured and surfaced in logs to improve traceability and debugging efficiency.

Core Features & Use Cases

  • Preserve error data at catch sites to enable immediate troubleshooting.
  • Encourage visibility by logging error details rather than discarding them.
  • Applicable to try/catch, Result handling, and error branches across development and production code.

Quick Start

Log and preserve the captured error data at the catch site to improve traceability.

Frequently Asked Questions about use-error-info

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I preserve error context in logs for debugging?

To preserve error context in logs for debugging, you must capture and log structured error data at catch sites rather than discarding it, ensuring traceability across try/catch blocks and error branches.

Why does error handling discard useful data in try/catch blocks?

Error handling discards useful data in try/catch blocks when errors are caught but not logged, which removes context. Applying non-discard rules ensures error data is surfaced for immediate troubleshooting.

What is the best way to log error data in Result patterns?

The best way to log error data in Result patterns is to enforce structured error data capture and clear logging guidance at error branches, preventing context loss and improving debugging efficiency.

How do I stop swallowing exceptions in local error handling?

To stop swallowing exceptions in local error handling, apply non-discard rules to expose error details in logs, ensuring that catch sites preserve and surface error data for traceability.

Does structured error capture work with production logging?

Yes, structured error capture works with production logging. It is applicable across development and production code, ensuring error details are visible and traceability is maintained for faster resolution.