diff options
Diffstat (limited to 'main.py')
| -rwxr-xr-x | main.py | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -37,6 +37,7 @@ from command import InteractiveCommand | |||
| 37 | from command import MirrorSafeCommand | 37 | from command import MirrorSafeCommand |
| 38 | from command import PagedCommand | 38 | from command import PagedCommand |
| 39 | from editor import Editor | 39 | from editor import Editor |
| 40 | from error import DownloadError | ||
| 40 | from error import ManifestInvalidRevisionError | 41 | from error import ManifestInvalidRevisionError |
| 41 | from error import NoSuchProjectError | 42 | from error import NoSuchProjectError |
| 42 | from error import RepoChangedException | 43 | from error import RepoChangedException |
| @@ -143,6 +144,9 @@ class _Repo(object): | |||
| 143 | else: | 144 | else: |
| 144 | print >>sys.stderr, 'real\t%dh%dm%.3fs' \ | 145 | print >>sys.stderr, 'real\t%dh%dm%.3fs' \ |
| 145 | % (hours, minutes, seconds) | 146 | % (hours, minutes, seconds) |
| 147 | except DownloadError, e: | ||
| 148 | print >>sys.stderr, 'error: %s' % str(e) | ||
| 149 | sys.exit(1) | ||
| 146 | except ManifestInvalidRevisionError, e: | 150 | except ManifestInvalidRevisionError, e: |
| 147 | print >>sys.stderr, 'error: %s' % str(e) | 151 | print >>sys.stderr, 'error: %s' % str(e) |
| 148 | sys.exit(1) | 152 | sys.exit(1) |
