[ditrack commit] r1901 - src/trunk/DITrack/Command
Ivan Glushkov
gli.work at gmail.com
Tue Aug 21 15:12:39 PDT 2007
Hi
> Modified: src/trunk/DITrack/Command/update.py
> ===================================================================
> --- src/trunk/DITrack/Command/update.py 2007-08-16 20:01:48 UTC (rev
> 1900)
> +++ src/trunk/DITrack/Command/update.py 2007-08-16 20:09:19 UTC (rev
> 1901)
> @@ -49,9 +49,16 @@
> db = DITrack.Util.common.open_db(globals, opts, "w")
> client = DITrack.Client.Client(db)
> try:
> + # XXX: Should return an error code along with the error
> message
> + # (so that different clients could just display it without
> + # formatting hassles).
> client.update()
> except DITrack.DB.Exceptions.SubversionClientError, e:
> sys.stdout.write(
> - "\nFailed to update database.\n"
> - "Try to execute manually:\n%s\n" % e.cmd
> - );
> + "\n"
> + "Failed to update the database. "
> + "The following command didn't succeed:\n"
> + " %s\n"
> + % e.cmd
> + );
> + sys.exit(1)
Do you mean here
(rvalue, rmessage) = client.update()
if rvalue:
DITrack.Util.common.err(rmessage)
?
or smth else?
More information about the Dev
mailing list