diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-03-08 17:59:19 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2016-03-27 11:53:02 +0000 |
commit | 442d00fcb041bbd8eb355288e2354d9de9430ecd (patch) | |
tree | f42924ce8516b922be2c216c79ccaf37ba01d25c | |
parent | 67dfff1a343a5337b831eaa9dc55c0b8908b7fb8 (diff) | |
download | morph-442d00fcb041bbd8eb355288e2354d9de9430ecd.tar.gz |
Handle decoding build_graph error
Change-Id: I84ce996fba0c06770baf1656bd4326ac3a97e5ef
-rw-r--r-- | gear/client.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gear/client.py b/gear/client.py index 63067f2d..9a7df6cc 100644 --- a/gear/client.py +++ b/gear/client.py @@ -29,11 +29,16 @@ class theController(): self.build_started = False def _process_build_graph(self, build_graph): - print "=====" - print build_graph - print "=====" print "Decoding artifact received" - self.artifact = distbuild.decode_artifact_reference(build_graph) + try: + self.artifact = distbuild.decode_artifact_reference(build_graph) + except ValueError as e: + print "ERROR: Failed to decode artifact" + print "ERROR: === build graph start ===" + print build_graph + print "ERROR: === build graph end ===" + raise e + print "Decoding artifact received done" # Mark everything as unbuilt to begin with. We'll query the actua # state from the cache in self._query_cache_state(). |