-
v2.1.1 Stable
released this
2026-09-20 20:11:10 +02:00 | 9 commits to main since this releaseNew
daw_i18n/v1language resources:i18n/en.json(canonical) and
i18n/de.json, 30 resources in total. Every error construction site
now carries its ownresource_id(init.lua3,ip_utils.lua15,
http_client.lua12). Error codes are unchanged.
Changed
- Bootstrap case: if
daw.common.erroritself is unreachable, all
modules now return the reserveddaw_error/v1sentinel
(id = "daw-error-facility-unavailable", withresource_id) instead
of a plain"[ERROR] ..."string. This removes the one documented
exception to the error contract. http_client: a connection failure now has the message
request failed; the raw LuaSocket error text moved to
err.data.detail. The code (connection_failed) and themethod/
urldata fields are unchanged.- Stub messages: the facade stub in
init.luanow reads
<name> submodule not available(the load error is in
err.data.detail); the dependency stub inhttp_clientreads
http_client unavailable: required dependency <name> is missingand
carrieserr.data.dependency.
Fixes
http_client: the dependency stub (missingsocket.http,ltn12or
daw.common.json) returned the error object as its first value
instead ofnil, err, so a caller checkingif not resulttreated
the error as a result. It now returnsnil, daw_error/v1.
See DAW/daw-lua-net#12.
Internal
http_client.lua:request()now builds itsdaw_error/v1where
each failure is detected;get/post/putjust return
request(...).Makefile: removed the obsoleteinstall/uninstalltargets. The
module is shipped as a git submodule inlib/daw/net/
(DAW/daw-lua-net#13).README.md: Contributing section aligned with the GitHub Issues
policy (DAW/daw-lua-net#11); the error-contract section describes the
sentinel.- Test suite: 64 -> 66 tests.
Migration
Only code that inspects error text or the bootstrap string needs
changes: a check for the old plain"[ERROR] ..."fallback string,
message:find(...)on the raw LuaSocket text (now
err.data.detail), or matching the old stub messages. Code that only
checksif err thenorerr.codeis unaffected.Requires daw-lua-common >= 2.1.0.
resource_idis set on errors built
throughdaw.common.erroronly with a daw-lua-common release that
supportsopts.resource_id; with 2.1.0 the field is accepted and
ignored (the sentinel objects carry it directly).See DAW/daw-lua-net#10.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads