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

Re: [Svnmerge] [PATCH] svnmerge.py: all error handling to be done usingthe error() function

From: Giovanni Bajo <rasky_at_develer.com>
Date: 2006-03-31 17:53:06 CEST

Madan U S <madan@collab.net> wrote:

> [[[
> All error handling to be done using the error() function.
>
> * contrib/client-side/svnmerge.py
> (error): Moved function to top of the file (well, almost ;)
> (global - during check for python version):
> (main):
> (check_old_prop_version): Replace code to print error message, exit(1)
> with call to error().
> ]]]

Thanks for the cleanup!

>> except KeyboardInterrupt:
>> # Avoid traceback on CTRL+C
>>- print "aborted by user"
>>- sys.exit(1)
>>+ err_str = "aborted by user"
>>+ error(err_str)

You don't need err_str here.

-- 
Giovanni Bajo
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 31 17:53:33 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.