# HG changeset patch # User Tobias Markmann # Date 1262187788 -3600 # Node ID d7abdd6893b86a9f720d2ec7f507efb2f9b9d451 # Parent 916482cdfb74a54f536e764201d5b77b7239377e util.sasl_cyrus: Report an error if Cyrus SASL init fails. diff -r 916482cdfb74 -r d7abdd6893b8 util/sasl_cyrus.lua --- a/util/sasl_cyrus.lua Tue Dec 29 01:04:48 2009 +0100 +++ b/util/sasl_cyrus.lua Wed Dec 30 16:43:08 2009 +0100 @@ -35,8 +35,11 @@ local function init(service_name) if not initialized then - if pcall(cyrussasl.server_init, service_name) then + local st, errmsg = pcall(cyrussasl.server_init, service_name); + if st then initialized = true; + else + log("error", "Failed to initialize CyrusSASL: %s", errmsg); end end end