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

Re: svn commit: r1331242 - in /subversion/trunk/subversion: include/svn_error.h libsvn_subr/error.c

From: Hyrum K Wright <hyrum.wright_at_wandisco.com>
Date: Fri, 27 Apr 2012 08:35:13 -0500

On Fri, Apr 27, 2012 at 1:32 AM, <gstein_at_apache.org> wrote:
> Author: gstein
> Date: Fri Apr 27 06:32:40 2012
> New Revision: 1331242
>
> URL: http://svn.apache.org/viewvc?rev=1331242&view=rev
> Log:
> Fix error tracing to record file/line properly.
>
> When code said:
>  return svn_error_trace(foo());
>
> It would set the file/line for that location, then call foo() and wrap
> any resulting error. However, foo() could potentially set its own
> file/line for an inner error. This revision uses a helper function to
> reorder execution to: call foo(), then set file/line, then wrap any
> resulting error with the trace information.
>
> Prior symptoms were duplicate file/line. They are resolved properly now.

Yay! This has been one of the rather annoying bits of the error
tracing system, that I've never quite been able to track down. Thanks
for fixing it.

-Hyrum

-- 
uberSVN: Apache Subversion Made Easy
http://www.uberSVN.com/
Received on 2012-04-27 15:35:46 CEST

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.