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

Re: Missing error messages with svn_error_quick_wrap [was: Re: " Inconsistent line-endings"]

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2004-03-22 00:44:31 CET

Greg Hudson wrote:
> On Sat, 2004-03-20 at 11:04, Julian Foad wrote:
>
>>"svn_error_quick_wrap" creates a wrapper error with the same error
>>code as the wrapped error. If the wrapped error doesn't have an
>>explicit message, "svn_handle_error" then doesn't print it at all
>>(apart from the file and line debugging info).
>
>>I think the best solution is for "svn_error_quick_wrap" to use the
>>error code SVN_ERR_BASE rather than copy the wrapped error code. The
>>default text for SVN_ERR_BASE is "A problem occurred; see later errors
>>for details", which is exactly what "svn_error_quick_wrap" is for.
>
> Hm, that doesn't seem right. The wrapped error should be recognizable
> programmatically as the same kind of error as the one being wrapped.

It is recognizable programmatically: the error code "SVN_ERR_BASE" means "This is a wrapper; see the inner error for details including the specific error code." Is there a problem with that?

> I think the svn_handle_error behavior for this case is probably historic
> and unjustified; it would be better to change the handling behavior than
> the wrapping behavior.

I thought about ways to change that and could not find a satisfactory way. Can you?

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 22 00:42:00 2004

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.