Add a helper for message plus cause chain to daw.common.error #64

Open
opened 2026-11-24 13:53:49 +01:00 by michael · 0 comments
Owner

Goal

One shared helper that renders an error's message and cause chain as one line.

Reason

fragjan has local flat() copies in core/modules/init.lua and adapters/log/init.lua. Whether the helper belongs here still needs a decision (see DAW/fragjan#157).

Scope

  • decide the helper's name and signature
  • implement with tests in daw.common.error

Acceptance criteria

  • helper available with tests
  • fragjan can drop its local copies

Refs DAW/fragjan#157

## Goal One shared helper that renders an error's message and cause chain as one line. ## Reason fragjan has local `flat()` copies in `core/modules/init.lua` and `adapters/log/init.lua`. Whether the helper belongs here still needs a decision (see DAW/fragjan#157). ## Scope - decide the helper's name and signature - implement with tests in `daw.common.error` ## Acceptance criteria - [ ] helper available with tests - [ ] fragjan can drop its local copies Refs DAW/fragjan#157
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/daw-lua-common#64
No description provided.