From 351fe2c793437e1d8a0b222f8478c74cf60ae034 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Wed, 25 Sep 2013 17:54:26 +0900 Subject: [PATCH] Sync: Improved error message when manifest server RPC call fails When the RPC call fails, the error message returned by the server is printed, but it is not obvious that this is caused by RPC call failure. Prefix the error message with a descriptive message that explains what went wrong. Change-Id: I4b77af22aacc2e9843c4df9d06bf54e41d9692ff --- subcmds/sync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subcmds/sync.py b/subcmds/sync.py index fcc6641f..e9d52b7b 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -566,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'