Align module_stub() error prefix with net-standard format #39

Closed
opened 2026-07-25 18:53:39 +02:00 by michael · 1 comment
Owner

Goal

Align the module_stub() error message in daw.common/init.lua with the
naming convention now used consistently across newer facades (see
DAW/daw-lua-net#5): submodule name only, no library-namespace prefix.

Change

Before:

[ERROR] daw.common: <name> not available: <load_err>

After:

[ERROR] <name>: submodule not available (<load_err>)

Why now, as a patch

Flagged as a non-blocking observation during the original json/init.lua
review, deferred without a tracking issue at the time. Text-only change,
no signature or behavior change -- not a breaking change, safe as a
2.0.x patch.

Acceptance criteria

  • module_stub() error format updated
  • make test green on Lua 5.1 and 5.4
  • fragjan code . clean

Refs: DAW/daw-lua-net#5

## Goal Align the module_stub() error message in daw.common/init.lua with the naming convention now used consistently across newer facades (see DAW/daw-lua-net#5): submodule name only, no library-namespace prefix. ## Change Before: ``` [ERROR] daw.common: <name> not available: <load_err> ``` After: ``` [ERROR] <name>: submodule not available (<load_err>) ``` ## Why now, as a patch Flagged as a non-blocking observation during the original json/init.lua review, deferred without a tracking issue at the time. Text-only change, no signature or behavior change -- not a breaking change, safe as a 2.0.x patch. ## Acceptance criteria - [ ] module_stub() error format updated - [ ] make test green on Lua 5.1 and 5.4 - [ ] fragjan code . clean Refs: DAW/daw-lua-net#5
Author
Owner

Superseded

The '[ERROR] : ...' string format this issue wanted to align no
longer exists. After the daw_error/v1 migration, module_stub() in
init.lua builds a daw_error/v1 with the message ' not available'
(no library-namespace prefix), the raw load error is in data.detail,
and the message has its own daw_i18n/v1 resource. The acceptance
criteria as written (string format) are obsolete, so this is closed.

## Superseded The '[ERROR] <name>: ...' string format this issue wanted to align no longer exists. After the daw_error/v1 migration, module_stub() in init.lua builds a daw_error/v1 with the message '<name> not available' (no library-namespace prefix), the raw load error is in data.detail, and the message has its own daw_i18n/v1 resource. The acceptance criteria as written (string format) are obsolete, so this is closed.
michael 2026-09-20 21:36:57 +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/daw-lua-common#39
No description provided.