diff options
-rw-r--r-- | subcmds/sync.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index 4763fadc..21bc5e7d 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -354,6 +354,8 @@ later is required to fix a server side protocol bug. | |||
354 | print('error: Cannot fetch %s from %s' | 354 | print('error: Cannot fetch %s from %s' |
355 | % (project.name, project.remote.url), | 355 | % (project.name, project.remote.url), |
356 | file=sys.stderr) | 356 | file=sys.stderr) |
357 | except GitError as e: | ||
358 | print('error.GitError: Cannot fetch %s' % str(e), file=sys.stderr) | ||
357 | except Exception as e: | 359 | except Exception as e: |
358 | print('error: Cannot fetch %s (%s: %s)' | 360 | print('error: Cannot fetch %s (%s: %s)' |
359 | % (project.name, type(e).__name__, str(e)), file=sys.stderr) | 361 | % (project.name, type(e).__name__, str(e)), file=sys.stderr) |
@@ -446,6 +448,9 @@ later is required to fix a server side protocol bug. | |||
446 | try: | 448 | try: |
447 | project.Sync_LocalHalf(syncbuf, force_sync=force_sync) | 449 | project.Sync_LocalHalf(syncbuf, force_sync=force_sync) |
448 | success = syncbuf.Finish() | 450 | success = syncbuf.Finish() |
451 | except GitError as e: | ||
452 | print('error.GitError: Cannot checkout %s: %s' % | ||
453 | (project.name, str(e)), file=sys.stderr) | ||
449 | except Exception as e: | 454 | except Exception as e: |
450 | print('error: Cannot checkout %s: %s: %s' % | 455 | print('error: Cannot checkout %s: %s: %s' % |
451 | (project.name, type(e).__name__, str(e)), | 456 | (project.name, type(e).__name__, str(e)), |