From 559b846b17a5b720c1247d07e292150466f27f96 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Mon, 2 Mar 2009 12:56:08 -0800 Subject: Report better errors when a project revision is invalid If a manifest specifies an invalid revision property, give the user a better error message detaling the problem, instead of an ugly Python traceback with a strange Git error message. Bug: REPO-2 Signed-off-by: Shawn O. Pearce --- error.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'error.py') diff --git a/error.py b/error.py index 029e1227..6b9dff44 100644 --- a/error.py +++ b/error.py @@ -17,6 +17,10 @@ class ManifestParseError(Exception): """Failed to parse the manifest file. """ +class ManifestInvalidRevisionError(Exception): + """The revision value in a project is incorrect. + """ + class EditorError(Exception): """Unspecified error from the user's text editor. """ -- cgit v1.2.3-54-g00ecf