Qinusty pushed to branch bst-1.2 at BuildStream / buildstream
Commits:
1 changed file:
Changes:
... | ... | @@ -238,7 +238,8 @@ class CASCache(ArtifactCache): |
238 | 238 |
|
239 | 239 |
except grpc.RpcError as e:
|
240 | 240 |
if e.code() != grpc.StatusCode.NOT_FOUND:
|
241 |
- raise
|
|
241 |
+ raise ArtifactError("Failed to pull artifact {}: {}".format(
|
|
242 |
+ element._get_brief_display_key(), e)) from e
|
|
242 | 243 |
|
243 | 244 |
return False
|
244 | 245 |
|
... | ... | @@ -279,6 +280,7 @@ class CASCache(ArtifactCache): |
279 | 280 |
|
280 | 281 |
except grpc.RpcError as e:
|
281 | 282 |
if e.code() != grpc.StatusCode.NOT_FOUND:
|
283 |
+ # Intentionally re-raise RpcError for outer except block.
|
|
282 | 284 |
raise
|
283 | 285 |
|
284 | 286 |
missing_blobs = {}
|