Skip to main content
Manusで任意のスキルを実行
ワンクリックで
$pwd:

handle-errors-in-code

// Guide for error handling in this Rust project. Covers the four principles (clarity, context, actionability, explicit enums over anyhow), the thiserror pattern for structured errors, including what/where/when/why context, writing actionable help text, and avoiding vague errors. Also covers the located-error package for errors with source location. Use when writing error types, handling Results, adding error variants, or reviewing error messages. Triggers on "error handling", "error type", "Result", "thiserror", "anyhow", "error enum", "error message", "handle error", "add error variant", or "located-error".

$ git log --oneline --stat
stars:510
forks:52
updated:2026年5月22日 08:44
SKILL.md
readonly