This is an automated email from the ASF dual-hosted git repository. tvb pushed a commit to branch 135-expire-artifacts-in-local-cache in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 2a47dac28b7ec94cd690246d1ba35fb1afe74ab6 Author: Tristan Maat <[email protected]> AuthorDate: Mon Jul 16 14:22:10 2018 +0100 _exceptions.py: Add `detail` to ArtifactErrors --- buildstream/_exceptions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildstream/_exceptions.py b/buildstream/_exceptions.py index 3779632..8baf167 100644 --- a/buildstream/_exceptions.py +++ b/buildstream/_exceptions.py @@ -249,8 +249,8 @@ class SandboxError(BstError): # Raised when errors are encountered in the artifact caches # class ArtifactError(BstError): - def __init__(self, message, reason=None): - super().__init__(message, domain=ErrorDomain.ARTIFACT, reason=reason) + def __init__(self, message, *, detail=None, reason=None): + super().__init__(message, detail=detail, domain=ErrorDomain.ARTIFACT, reason=reason) # PipelineError
