A ledger entry that is not an object ends run and seats with an error #6
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Catcrafts/Crafter.Review#6
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ledger::Entryreads a seat's entry withDyn::Get(e, "cycle"), which throwsAttributeErrorwhen the entry is not an object. Aseat-ledger.jsonholding, say,"api1": 5therefore endsrunandseatswith that error. Everywhere else the ledger is a record, never a dependency: a file that cannot be read or parsed loads as empty.A fix treats an entry that is not an object as missing (a fresh entry), with a test.
Found by the 1.1.0 push gates.