mod_auth_dovecot/auth_dovecot/mod_auth_dovecot.lua
changeset 838 c9e2beec4ef6
parent 814 881ec9919144
child 1212 bd88728b0d95
--- a/mod_auth_dovecot/auth_dovecot/mod_auth_dovecot.lua	Sat Sep 22 02:06:21 2012 +0200
+++ b/mod_auth_dovecot/auth_dovecot/mod_auth_dovecot.lua	Fri Sep 28 08:31:27 2012 +0500
@@ -37,7 +37,10 @@
 end
 
 do
-	local s = new_sasl(module.host)
+	local s, err = new_sasl(module.host)
+	if not s then
+		log("error", "%s", tostring(err));
+	end
 	assert(s, "Could not create a new SASL object");
 	assert(s.mechanisms, "SASL object has no mechanims method");
 	local m, _m = {}, s:mechanisms();