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

Re: RFC: svn_io_file_write_full and svn_io_file_read(_full)

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2003-11-26 18:32:32 CET

On Wed, 2003-11-26 at 12:22, Erik Huelsmann wrote:
> >> The wrappers would extract the filename from the apr_file_t structure as
> >> is done in apr_file_close and add that to the specific error message.
> >
> > Note that you can also use apr_strerror() to get a message out of APR.
>
> True, but that is an action currently implemented in svn_handle_error.

Er, so?

I think the suggestion is something like:

  svn_error_createf(status, NULL, "Can't read from file '%s': %s",
                          filename, apr_strerror(status));

That's prettier than displaying a two-line error message.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 26 18:33:57 2003

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.