[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: error without message from svn_subst_translate_string

From: Uwe Zeisberger <zeisberg_at_informatik.uni-freiburg.de>
Date: 2004-11-20 11:28:30 CET

SteveKing wrote:
> Uwe Zeisberger wrote:
>
> >Without trying, I suppose, you can get an appropriate message by using
> >svn_strerror(). If the result is informing enough, there is no need for
> >an additional error message. As I didn't test, I don't know if that's
> >the case.
>
> svn_strerror() just tries to read the error message from the error
> baton. Since that is NULL, no error string is returned.
This is wrong, as svn_strerror takes an apr_status_t as parameter and no
svn_error_t.

The output of the attached code is:

        svn: Inconsistent line ending style

It uses svn_handle_error(), which uses print_error(), which in turn uses
svn_strerror().

(I used svnlibs of version 1.0.4, but it should work with 1.1.1, too.)

bye
Uwe

-- 
Uwe Zeisberger
http://www.google.com/search?q=1+hertz+in+sec**-1

Received on Sat Nov 20 11:29:38 2004

This is an archived mail posted to the Subversion Dev mailing list.