## Lesson — Inspect error cause for wrapped I/O failures

**Tags:** error-handling, node.js
**Scope:** packages/cli/src/commands/**/*.ts, !**/*.test.*, !**/*.spec.*

Check the 'cause' property of wrapped errors to accurately distinguish between missing files, data corruption, and permission issues.
