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

Re: [PATCH] svn command - ls - Multiple targets

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Mon, 14 Feb 2011 14:44:41 +0200

Stefan Sperling wrote on Mon, Feb 14, 2011 at 13:25:13 +0100:
> On Mon, Feb 14, 2011 at 01:18:58PM +0100, Stefan Sperling wrote:
> > > @@ -301,5 +318,8 @@
> > > if (opt_state->xml && ! opt_state->incremental)
> > > SVN_ERR(svn_cl__xml_print_footer("lists", pool));
> > >
> > > - return SVN_NO_ERROR;
> > > + if (saw_a_problem)
> > > + return svn_error_create(SVN_ERR_BASE, NULL, NULL);
> > > + else
> > > + return SVN_NO_ERROR;
> > > }
>
> Oh, and I'm not sure if SVN_ERR_BASE and no message is the right
> thing to do here. Maybe this should be an error code such as
> SVN_ERR_ILLEGAL_TARGET and a message like _("Could not list all
> targets because some targets don't exist")?

Is it easily possible to give the name of the non-existent target here?

(i.e., "it's good for error messages to contain an %s")
Received on 2011-02-14 13:49:46 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.