fix(adapters/ui): build_usage silently discards provider errors #44

Closed
opened 2026-05-25 13:42:23 +02:00 by michael · 0 comments
Owner

Problem

M.build_usage explicitly discards the error return:

local u, _ = mod.build_usage(roots)
if u then table.insert(usage, u) end

A failing build_usage is silently ignored. Violates DAW coding standard
rule 3 ("the caller always gets an answer").

Fix

Check and propagate the error return from mod.build_usage.

Acceptance criteria

  • Error from build_usage is not discarded
  • Caller receives error if any provider fails
## Problem `M.build_usage` explicitly discards the error return: ```lua local u, _ = mod.build_usage(roots) if u then table.insert(usage, u) end ``` A failing `build_usage` is silently ignored. Violates DAW coding standard rule 3 ("the caller always gets an answer"). ## Fix Check and propagate the error return from `mod.build_usage`. ## Acceptance criteria - [ ] Error from `build_usage` is not discarded - [ ] Caller receives error if any provider fails
michael added this to the Basic Version milestone 2026-05-30 16:05:00 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DAW/fragjan#44
No description provided.