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

RE: Detecting unhandled errors

From: Sander Striker <striker_at_apache.org>
Date: 2003-10-13 18:46:33 CEST

> From: Philip Martin [mailto:philip@codematters.co.uk]
> Sent: Monday, October 13, 2003 5:44 PM

> "C. Michael Pilato" <cmpilato@collab.net> writes:
> > "Sander Striker" <striker@apache.org> writes:
> >
> >> Ah, right!
> >>
> >> So, would this do the trick? Is this desired, or should the caller clear
> >> the error itself?
> >
> > Feels (to me) more correct for the consumers to explicitly clear the
> > errors they are finished with.
> Not sure which is correct, after all the function does have "handle"
> in it's name.

I agree.

> I think I have identified all the fs-test error leaks, they are all in
> fs-test.c itself.

Great, thx.

> One thing I noticed is that when an program creates
> and clears lots of errors it can be very hard to determine which error
> got missed. I am using a local patch to register the error itself as
> the cleanup data pointer. What do you think?

All goodness, +1.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Oct 13 18:47:17 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.