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

Re: svn commit: rev 1211 - trunk/subversion/libsvn_subr trunk/subversion/tests/libsvn_subr

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-02-08 14:06:53 CET

Greg Stein <gstein@lyra.org> writes:

> On Thu, Feb 07, 2002 at 08:44:23PM -0600, philip@tigris.org wrote:
> >...
> > + apr_err = apr_file_name_get (&fname, file);
> > + if (!APR_STATUS_IS_SUCCESS(apr_err))
> > + return svn_error_create
> > + (apr_err, 0, NULL, pool,
> > + "svn_string_from_aprfile: failed to get filename");
> > +
> > + apr_err = apr_stat (&finfo, fname, APR_FINFO_SIZE, pool);
> > + if (!APR_STATUS_IS_SUCCESS(apr_err))
> > + return svn_error_createf
> > + (apr_err, 0, NULL, pool,
> > + "svn_string_from_aprfile: failed to stat '%s'", fname);
>
> This can be simplified by using apr_file_info_get().

Possibly, but then I would either have to call apr_file_name_get for
every subsequent error message, or not put the file name in the error
messages.

-- 
Philip
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:05 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.