You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by no...@apache.org on 2020/12/29 12:48:18 UTC
[buildstream] 02/11: _exceptions.py: Add `detail` to ArtifactErrors
This is an automated email from the ASF dual-hosted git repository.
not-in-ldap 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 <tr...@codethink.co.uk>
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