mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-26 12:14:56 +00:00
make error reporting consistent
This commit is contained in:
1 parent
5e4ae64e1b
commit
298ee549da
3 files changed
+40
-40
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user