summaryrefslogtreecommitdiffstats
path: root/error.py
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2009-03-02 12:56:08 -0800
committerShawn O. Pearce <sop@google.com>2009-03-02 12:56:08 -0800
commit559b846b17a5b720c1247d07e292150466f27f96 (patch)
tree1b0c5ed818859db0ef13b943dc005af4fbdd3289 /error.py
parent7c6c64d463d3baa361ef7bef8ff3149134819c96 (diff)
downloadgit-repo-559b846b17a5b720c1247d07e292150466f27f96.tar.gz
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 <sop@google.com>
Diffstat (limited to 'error.py')
-rw-r--r--error.py4
1 files changed, 4 insertions, 0 deletions
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):
17 """Failed to parse the manifest file. 17 """Failed to parse the manifest file.
18 """ 18 """
19 19
20class ManifestInvalidRevisionError(Exception):
21 """The revision value in a project is incorrect.
22 """
23
20class EditorError(Exception): 24class EditorError(Exception):
21 """Unspecified error from the user's text editor. 25 """Unspecified error from the user's text editor.
22 """ 26 """