From 75ee0570da09abb1d2bbefe0d25f0560727e6b71 Mon Sep 17 00:00:00 2001 From: Conley Owens Date: Thu, 15 Nov 2012 17:33:11 -0800 Subject: Raise a NoManifestException when the manifest DNE When a command (eg, `repo forall`) expects the manifest project to exist, but there is no manifest, an IOException gets raised. This change defines a new Exception type to be raised in these cases and raises it when project.py fails to read the manifest. Change-Id: Iac576c293a37f7d8f60cd4f6aa95b2c97f9e7957 --- error.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'error.py') diff --git a/error.py b/error.py index 21482486..7e52b016 100644 --- a/error.py +++ b/error.py @@ -21,6 +21,10 @@ class ManifestInvalidRevisionError(Exception): """The revision value in a project is incorrect. """ +class NoManifestException(Exception): + """The required manifest does not exist. + """ + class EditorError(Exception): """Unspecified error from the user's text editor. """ -- cgit v1.2.3-54-g00ecf