diff options
author | Shawn O. Pearce <sop@google.com> | 2009-03-02 12:56:08 -0800 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2009-03-02 12:56:08 -0800 |
commit | 559b846b17a5b720c1247d07e292150466f27f96 (patch) | |
tree | 1b0c5ed818859db0ef13b943dc005af4fbdd3289 /error.py | |
parent | 7c6c64d463d3baa361ef7bef8ff3149134819c96 (diff) | |
download | git-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.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 | ||
20 | class ManifestInvalidRevisionError(Exception): | ||
21 | """The revision value in a project is incorrect. | ||
22 | """ | ||
23 | |||
20 | class EditorError(Exception): | 24 | class EditorError(Exception): |
21 | """Unspecified error from the user's text editor. | 25 | """Unspecified error from the user's text editor. |
22 | """ | 26 | """ |