diff options
| author | Conley Owens <cco3@android.com> | 2012-11-16 10:39:24 -0800 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2012-11-16 10:39:24 -0800 |
| commit | a67df63ef18f7bcd1398dc5c3622c01c3fcad15d (patch) | |
| tree | c456ef285ded2feb1eb0d9339f3f030f937658ef /main.py | |
| parent | f91074881fb437e8cba8f9be81bd63cda5e0a557 (diff) | |
| parent | 75ee0570da09abb1d2bbefe0d25f0560727e6b71 (diff) | |
| download | git-repo-a67df63ef18f7bcd1398dc5c3622c01c3fcad15d.tar.gz | |
Merge "Raise a NoManifestException when the manifest DNE"
Diffstat (limited to 'main.py')
| -rwxr-xr-x | main.py | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -42,6 +42,7 @@ from editor import Editor | |||
| 42 | from error import DownloadError | 42 | from error import DownloadError |
| 43 | from error import ManifestInvalidRevisionError | 43 | from error import ManifestInvalidRevisionError |
| 44 | from error import ManifestParseError | 44 | from error import ManifestParseError |
| 45 | from error import NoManifestException | ||
| 45 | from error import NoSuchProjectError | 46 | from error import NoSuchProjectError |
| 46 | from error import RepoChangedException | 47 | from error import RepoChangedException |
| 47 | from manifest_xml import XmlManifest | 48 | from manifest_xml import XmlManifest |
| @@ -140,6 +141,10 @@ class _Repo(object): | |||
| 140 | except ManifestInvalidRevisionError as e: | 141 | except ManifestInvalidRevisionError as e: |
| 141 | print('error: %s' % str(e), file=sys.stderr) | 142 | print('error: %s' % str(e), file=sys.stderr) |
| 142 | result = 1 | 143 | result = 1 |
| 144 | except NoManifestException as e: | ||
| 145 | print('error: manifest required for this command -- please run init', | ||
| 146 | file=sys.stderr) | ||
| 147 | result = 1 | ||
| 143 | except NoSuchProjectError as e: | 148 | except NoSuchProjectError as e: |
| 144 | if e.name: | 149 | if e.name: |
| 145 | print('error: project %s not found' % e.name, file=sys.stderr) | 150 | print('error: project %s not found' % e.name, file=sys.stderr) |
