Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r14 - in trunk: . fsvs/src

fsvs
Discussion topic

Hide all messages in topic

All messages in topic

svn commit: r14 - in trunk: . fsvs/src

Author pmarek
Full name P.Marek
Date 2005-10-04 23:01:15 PDT
Message Author: pmarek
Date: Tue Oct 4 23:01:15 2005
New Revision: 14

Modified:
   trunk/ (props changed)
   trunk/fsvs/src/fsvs.c
Log:
show subversion error texts as well



Modified: trunk/fsvs/src/fsvs.c
Url: http://fsvs.tigris.o​rg/source/browse/fsv​s/trunk/fsvs/src/fsv​s.c?view=diff&re​v=14&p1=trunk/fs​vs/src/fsvs.c&r1​=13&p2=trunk/fsv​s/src/fsvs.c&r2=​14
====================​====================​====================​==================
--- trunk/fsvs/src/fsvs.c (original)
+++ trunk/fsvs/src/fsvs.c Tue Oct 4 23:01:15 2005
@@ -15,6 +15,7 @@
 #include <stdarg.h>
 
 #include <svn_props.h>
+#include <svn_error.h>
 
 #include "global.h"
 #include "interface.h"
@@ -103,6 +104,7 @@
     struct tm *tm;
     va_list va;
     FILE *stop_out=stderr;
+ char errormsg[256];
 
     if (already_stopping++)
     {
@@ -124,8 +126,10 @@
                     tm->tm_hour, tm->tm_min, tm->tm_sec, (int)(tv.tv_usec+500)/1000);
         }
 
+ errormsg[0]=0;
+ svn_strerror (errl, errormsg, sizeof(errormsg));
         fprintf(stop_out, ": %s (%d)\n",
- strerror(errl), errl);
+ errormsg[0] ? errormsg : strerror(errl), errl);
     }
 
     fputs(" in ", stop_out);
Messages per page: