mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
sync: Improve error message when writing smart sync manifest fails
The error message only states that writing the manifest failed. Include the exception message, so it's easier to track down the reason that the write failed. Change-Id: I06e942c48a19521ba45292199519dd0a8bdb1de7
This commit is contained in:
parent
c5ceeb1625
commit
727cc3e324
@ -592,8 +592,9 @@ later is required to fix a server side protocol bug.
|
|||||||
f.write(manifest_str)
|
f.write(manifest_str)
|
||||||
finally:
|
finally:
|
||||||
f.close()
|
f.close()
|
||||||
except IOError:
|
except IOError as e:
|
||||||
print('error: cannot write manifest to %s' % manifest_path,
|
print('error: cannot write manifest to %s:\n%s'
|
||||||
|
% (manifest_path, e),
|
||||||
file=sys.stderr)
|
file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
self._ReloadManifest(manifest_name)
|
self._ReloadManifest(manifest_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user