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
This commit is contained in:
parent
88b86728a4
commit
75ee0570da
3 changed files with 14 additions and 1 deletions
4
error.py
4
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.
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue