From b9ea6acbf53fe7e77865074ea23987beb677e3d1 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Mon, 8 Oct 2007 15:12:28 +0000 Subject: [PATCH] Add handler for errors.TagError This patch adds a simple handler for TagError that prints the error (better than having a stack dump). Reviewed-by: imsnah --- lib/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/cli.py b/lib/cli.py index 0a27edd35..28d71a24e 100644 --- a/lib/cli.py +++ b/lib/cli.py @@ -427,6 +427,9 @@ def GenericMain(commands, override=None): except errors.OpExecError, err: logger.ToStderr("Failure: command execution error:\n%s" % str(err)) result = 1 + except errors.TagError, err: + logger.ToStderr("Failure: invalid tag(s) given:\n%s" % str(err)) + result = 1 finally: utils.Unlock('cmd') utils.LockCleanup() -- GitLab