Merge changes I4b77af22,Ib5bc2de5

* changes:
  Sync: Improved error message when manifest server RPC call fails
  Sync: Print name of manifest server used for smart sync/smart tag
This commit is contained in:
David Pursehouse 2013-09-27 02:24:39 +00:00 committed by Gerrit Code Review
commit efc986c508

View File

@ -496,6 +496,8 @@ later is required to fix a server side protocol bug.
sys.exit(1)
manifest_server = self.manifest.manifest_server
if not opt.quiet:
print('Using manifest server %s' % manifest_server)
if not '@' in manifest_server:
username = None
@ -564,7 +566,8 @@ later is required to fix a server side protocol bug.
sys.exit(1)
self._ReloadManifest(manifest_name)
else:
print('error: %s' % manifest_str, file=sys.stderr)
print('error: manifest server RPC call failed: %s' %
manifest_str, file=sys.stderr)
sys.exit(1)
except (socket.error, IOError, xmlrpc.client.Fault) as e:
print('error: cannot connect to manifest server %s:\n%s'