Improve logging on failed connect attempt

This commit is contained in:
matt335672
2025-03-08 10:45:24 +00:00
parent 39ec7089ac
commit 39a178902e
4 changed files with 73 additions and 55 deletions
+2 -1
View File
@@ -324,7 +324,8 @@ lib_mod_connect(struct mod *mod)
}
else
{
mod->server_msg(mod, "connection problem, giving up", 0);
LOG(LOG_LEVEL_ERROR, "Error connecting to X server [%s]",
g_get_strerror());
}
if (error == 0)