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

Re: error codes in client code

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-01-28 18:24:01 CET

Daniel Stenberg <daniel@haxx.se> writes:
> The current client code calls error_create() (counting... ) some 25 times at
> least. I'd say that indicates that the client might need this.

The number of times error_create() is called isn't relevant to the
question of whether the client needs its own error codes, though. :-)

> Good question. In general I don't think that the error code is what matters
> when the client sets the error. What is gonna matter is the textual part as
> that is what the user is gonna read and react upon.
>
> But it might still be good reasons to have error codes. For i18n-reasons for
> example. When the future swedish user gets a localized error, the error code
> should still be the same among svn users, even if the text message itselft
> might be considered unreadable to most of the universe! ;-)

Well, in a theoretical sense this is nice, but I'm not sure it's
actually going to make a big difference in anyone's life, or in
Subversion's debuggability...

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:00 2006

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.