You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by 'Daniel Shahaf' <d....@daniel.shahaf.name> on 2010/09/20 12:58:02 UTC

Terminology (was: [PATCH 3/3] atomic-revprop: Signal the error as a HTTP status code)

Bert Huijben wrote on Mon, Sep 20, 2010 at 12:17:12 +0200:
> I think 'SVN_ERR_BAD_OLD_VALUE' could use a better/more generic name though.
> ('Old value' is only valid in the specific function context. Maybe extend
> this to something more like this 'precondition failed')

In the interest of moving forward I've committed it already with its
current macro name and default message, but we could rename the error
code or the message in a followup commit.

"Nominated value"? "Prevalue"? "BASE value"? "Entry value"?

RE: Terminology (was: [PATCH 3/3] atomic-revprop: Signal the error as a HTTP status code)

Posted by Bert Huijben <be...@qqmail.nl>.

> -----Original Message-----
> From: 'Daniel Shahaf' [mailto:d.s@daniel.shahaf.name]
> Sent: maandag 20 september 2010 12:58
> To: Bert Huijben
> Cc: 'Jon Foster'; 'Subversion Development'
> Subject: Terminology (was: [PATCH 3/3] atomic-revprop: Signal the error
> as a HTTP status code)
> 
> Bert Huijben wrote on Mon, Sep 20, 2010 at 12:17:12 +0200:
> > I think 'SVN_ERR_BAD_OLD_VALUE' could use a better/more generic name
> though.
> > ('Old value' is only valid in the specific function context. Maybe
> extend
> > this to something more like this 'precondition failed')
> 
> In the interest of moving forward I've committed it already with its
> current macro name and default message, but we could rename the error
> code or the message in a followup commit.
> 
> "Nominated value"? "Prevalue"? "BASE value"? "Entry value"?

I think the error should be in the SVN_ERR_RA (or if it originates there:
FS) prefix, not just 'SVN_ERR_BAD' and specify more what happened. (The BAD
category doesn't carry any information on what failed and is used only for
argument validation errors. This makes it hard to diagnose the error from
just the error code. And with our localized error messages that is all
applications that use libsvn_client can do)

So something like:
SVN_ERR_RA_PROP_BASEVALUE_MISMATCH
(specifies the RA problem)

Or just
SVN_ERR_RA_PRECONDITION_FAILED
(generic RA precondition problem)

	Bert