diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-06-24 04:16:09 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-06-24 04:16:09 +0500 |
commit | 33b8a56bf8f1c30d8d8dc8fe2ea44e28e6cb26a2 (patch) | |
tree | 14e29f374acd30faa11177625bcbbb7d5ce71564 | |
parent | 3fb552cc7af07cdc8b5b9175d8f518a55ff8bef3 (diff) | |
download | prosody-33b8a56bf8f1c30d8d8dc8fe2ea44e28e6cb26a2.tar.gz prosody-33b8a56bf8f1c30d8d8dc8fe2ea44e28e6cb26a2.zip |
util.sasl_cyrus: Return error strings using the new table mapping error codes to strings.
-rw-r--r-- | util/sasl_cyrus.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/sasl_cyrus.lua b/util/sasl_cyrus.lua index 2864a944..7d35b5e4 100644 --- a/util/sasl_cyrus.lua +++ b/util/sasl_cyrus.lua @@ -166,10 +166,10 @@ function method:process(message) log("debug", "SASL mechanism not available from remote end") return "failure", "invalid-mechanism", "SASL mechanism not available" elseif (err == -13) then -- SASL_BADAUTH - return "failure", "not-authorized", cyrussasl.get_message( self.cyrus ) + return "failure", "not-authorized", sasl_errstring[err]; else - log("debug", "Got SASL error condition %d: %s", err, cyrussasl.get_message( self.cyrus )) - return "failure", "undefined-condition", cyrussasl.get_message( self.cyrus ) + log("debug", "Got SASL error condition %d: %s", err, sasl_errstring[err]); + return "failure", "undefined-condition", sasl_errstring[err]; end end |