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

Re: [PATCH] include error codes in error messages

From: Neels Janosch Hofmeyr <neels_at_elego.de>
Date: Thu, 07 Feb 2008 13:53:28 +0100

Stefan Sperling wrote:
> On Wed, Feb 06, 2008 at 09:05:12PM -0800, C. Michael Pilato wrote:
>
>> Is APR's base error programmatically set, though? I always assumed it was,
>> which would make our error codes build-specific.
>>
>
> If so, error codes included in error messages won't be of much
> use to anyone after a few release cycles. Search engines would be
> littered with error codes pointing to more than one problem...
>
>
The error codes may be OS specific, as could be interpreted from
the following code snippet from subversion/include/svn_error_codes.h:

#define SVN_ERR_CATEGORY_SIZE 5000

/* Leave one category of room at the beginning, for SVN_WARNING and
   any other such beasts we might create in the future. */
#define SVN_ERR_BAD_CATEGORY_START (APR_OS_START_USERERR \
                                         + ( 1 * SVN_ERR_CATEGORY_SIZE))
#define SVN_ERR_XML_CATEGORY_START (APR_OS_START_USERERR \
                                         + ( 2 * SVN_ERR_CATEGORY_SIZE))

But they are not build specific, are they?

-- 
Neels Janosch Hofmeyr
Software Developer
neels_at_elego.de
Public Key at
 subkeys.pgp.net
or
 http://binarchy.net/neels/neels.hofmeyr.public.key.asc
elego Software Solutions GmbH           http://www.elegosoft.com
Gustav-Meyer-Allee 25, Gebäude 12       HRB 77719
13355 Berlin, Germany                   Amtsgericht Charlottenburg
Tel.: +49 30 23 45 86 96                Sitz der Gesellschaft: Berlin
Fax:  +49 30 23 45 86 95                Geschäftsführer: Olaf Wagner

Received on 2008-02-07 13:53:39 CET

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.