subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1222628 - /subversion/trunk/subversion/libsvn_ra_svn/cyrus_auth.c
Date Fri, 23 Dec 2011 10:12:22 GMT
Author: stsp
Date: Fri Dec 23 10:12:22 2011
New Revision: 1222628

URL: http://svn.apache.org/viewvc?rev=1222628&view=rev
Log:
* subversion/libsvn_ra_svn/cyrus_auth.c
  (new_sasl_ctx): Amend another SASL error message to make it obvious
   where the error message comes from. Should avoid bad error messages
   like "svn: generic failure" if SASL returns "generic failure" when
   trying to create a new client context.

Modified:
    subversion/trunk/subversion/libsvn_ra_svn/cyrus_auth.c

Modified: subversion/trunk/subversion/libsvn_ra_svn/cyrus_auth.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_svn/cyrus_auth.c?rev=1222628&r1=1222627&r2=1222628&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_svn/cyrus_auth.c (original)
+++ subversion/trunk/subversion/libsvn_ra_svn/cyrus_auth.c Fri Dec 23 10:12:22 2011
@@ -365,8 +365,9 @@ static svn_error_t *new_sasl_ctx(sasl_co
                            callbacks, SASL_SUCCESS_DATA,
                            sasl_ctx);
   if (result != SASL_OK)
-    return svn_error_create(SVN_ERR_RA_NOT_AUTHORIZED, NULL,
-                            sasl_errstring(result, NULL, NULL));
+    return svn_error_createf(SVN_ERR_RA_NOT_AUTHORIZED, NULL,
+                             _("Could not create SASL client context: %s"),
+                             sasl_errstring(result, NULL, NULL));
 
   svn_atomic_inc(&sasl_ctx_count);
   apr_pool_cleanup_register(pool, *sasl_ctx, sasl_dispose_cb,



Mime
View raw message