Skip to content

fix(report): use RunNotFound for missing tags#199

Merged
rocketman-code merged 1 commit intomainfrom
fix/missing-tag-error
Feb 28, 2026
Merged

fix(report): use RunNotFound for missing tags#199
rocketman-code merged 1 commit intomainfrom
fix/missing-tag-error

Conversation

@rocketman-code
Copy link
Owner

Summary

  • Map file-not-found IO errors in resolve_tag() to RunNotFound instead of RunReadError
  • Prevents internal file paths from leaking into error messages

Before: error: failed to read run file /path/to/target/piano/tags/nonexistent: No such file or directory
After: error: no run found for tag 'nonexistent' -- run piano tag to see available tags

Test plan

  • Updated resolve_tag_errors_on_missing_tag to assert RunNotFound variant

Closes #198

When resolve_tag() encounters a file-not-found error, map it to
RunNotFound instead of RunReadError to avoid leaking internal file
paths and to show a user-friendly message.

Closes #198
@rocketman-code rocketman-code merged commit 4054cba into main Feb 28, 2026
5 checks passed
@rocketman-code rocketman-code deleted the fix/missing-tag-error branch February 28, 2026 05:24
@rocketman-code rocketman-code added this to the 0.8.0 milestone Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(report): missing tag produces RunReadError instead of RunNotFound

1 participant