make error reporting consistent

This commit is contained in:
Sergio R. Caprile committed 2026-10-16 15:59:20 -03:00
1 parent 5e4ae64e1b
commit 298ee549da
3 files changed
+40 -40

No files matched your search

+1 -1
View File
@@ -263,7 +263,7 @@ static bool mg_dns_send(struct mg_connection *c, const struct mg_str *name,
bool mg_dnsc_init(struct mg_mgr *mgr, struct mg_dns *dnsc);
bool mg_dnsc_init(struct mg_mgr *mgr, struct mg_dns *dnsc) {
if (dnsc->url == NULL) {
mg_error(0, "DNS server URL is NULL. Call mg_mgr_init()");
MG_ERROR(("DNS server URL is NULL. Call mg_mgr_init()"));
return false;
}
if (dnsc->c == NULL) {