This is an automated email from the ASF dual-hosted git repository.
AlinsRan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 333f46a5d fix(dns): correct error() call in dns client initialization
(#13358)
333f46a5d is described below
commit 333f46a5dc17d14d575b0caf83ef17c2204d2a00
Author: Surya Parua <[email protected]>
AuthorDate: Tue Jul 7 11:04:15 2026 +0530
fix(dns): correct error() call in dns client initialization (#13358)
---
apisix/discovery/dns/init.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apisix/discovery/dns/init.lua b/apisix/discovery/dns/init.lua
index 601de0ebc..197b7580d 100644
--- a/apisix/discovery/dns/init.lua
+++ b/apisix/discovery/dns/init.lua
@@ -78,7 +78,7 @@ function _M.init_worker()
local client, err = core.dns_client.new(opts)
if not client then
- error("failed to init the dns client: ", err)
+ error("failed to init the dns client: " .. (err or "unknown"))
return
end