Development record
An unreadable ledger status directory reads as an unknown issue id: internal/core/capture/alloc.go findIssue continues past an os.ReadDir error, so with open/ unreadable (chmod 000) resolve, wontfix and defer print 'unknown issue id ... not found in any status directory' and exit 2, a refusal of the caller's input, when the ledger could not be read and the exit should be 1. The same swallow sits in issPresent (the mint's occupancy check reads an unreadable directory as holding nothing), checkOneStatusPerID (list and status read it as empty) and the orphan-placeholder sweep. An absent status directory stays tolerated; any other read error should be a fault.
An unreadable ledger status directory reads as an unknown issue id: internal/core/capture/alloc.go findIssue continues past an os.ReadDir error, so with open/ unreadable (chmod 000) resolve, wontfix and defer print 'unknown issue id ... not found in any status directory' and exit 2, a refusal of the caller's input, when the ledger could not be read and the exit should be 1. The same swallow sits in issPresent (the mint's occupancy check reads an unreadable directory as holding nothing), checkOneStatusPerID (list and status read it as empty) and the orphan-placeholder sweep. An absent status directory stays tolerated; any other read error should be a fault.
Grounds
- pursued: resolve, wontfix and defer against an unreadable open/ exit 1 naming the folder, and list, status and a forced mint fault on an unreadable resolved/; any of them answering unknown id or rendering the folder as empty would show it wrong
Frontmatter
| id | iss-2609261241121312 |
|---|---|
| type | issue |
| lifecycle | resolved |
| severity | minor |
.abcd/work/issues/resolved/iss-2609261241121312-unreadable-status-dir-reads-as-unknown.md
open on GitHub ↗ · commit history ↗