Author: rhuijben
Date: Tue Jul 19 16:28:57 2011
New Revision: 1148434

URL: http://svn.apache.org/viewvc?rev=1148434&view=rev
Log:
Improve ra_svn error reporting a bit when using SVN_DEBUG.

* subversion/libsvn_ra_svn/marshal.c
  (includes): Add private/svn_error_private.h.
  (svn_ra_svn_write_cmd_failure): Don't repeat the real error for trace links,
    to allow filtering for trace errors on the other side.

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

Modified: subversion/trunk/subversion/libsvn_ra_svn/marshal.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_svn/marshal.c?rev=1148434&r1=1148433&r2=1148434&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_svn/marshal.c (original)
+++ subversion/trunk/subversion/libsvn_ra_svn/marshal.c Tue Jul 19 16:28:57 2011
@@ -44,6 +44,7 @@
 
 #include "private/svn_string_private.h"
 #include "private/svn_dep_compat.h"
+#include "private/svn_error_private.h"
 
 #define svn_iswhitespace(c) ((c) == ' ' || (c) == '\n')
 
@@ -1096,7 +1097,14 @@ svn_error_t *svn_ra_svn_write_cmd_failur
   SVN_ERR(svn_ra_svn_start_list(conn, pool));
   for (; err; err = err->child)
     {
-      const char *msg = svn_err_best_message(err, buffer, sizeof(buffer));
+      const char *msg;
+
+#ifdef SVN_DEBUG
+      if (svn_error__is_tracing_link(err))
+        msg = err->message;
+      else
+#endif
+        msg = svn_err_best_message(err, buffer, sizeof(buffer));
 
       /* The message string should have been optional, but we can't
          easily change that, so marshal nonexistent messages as "". */


Reply via email to