summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-06-07 16:38:06 -0400
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-06-07 16:41:33 -0400
commitde194dad617ef9c35fd03ac6bd8622ebdfa7eb77 (patch)
treefb0206cac123d71b7fd148acb7ec09fa04ecccb7
parenta231d41bcbcf4ad32b87968fa92de9c1637201f8 (diff)
downloadbuildstream-de194dad617ef9c35fd03ac6bd8622ebdfa7eb77.tar.gz
_artifactcache/pushreceive.py: Cleanup reported error when receiving oversized artifacts
This user facing string was redundantly declared in two places, only the message when catching the error was ever printed.
-rw-r--r--buildstream/_artifactcache/pushreceive.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/buildstream/_artifactcache/pushreceive.py b/buildstream/_artifactcache/pushreceive.py
index d4b378cb7..41dacf33f 100644
--- a/buildstream/_artifactcache/pushreceive.py
+++ b/buildstream/_artifactcache/pushreceive.py
@@ -643,9 +643,8 @@ class OSTreeReceiver(object):
def run(self):
try:
exit_code = self.do_run()
- except ArtifactTooLargeException:
- logging.warning("The artifact was too large for the filesystem which mounts "
- "the remote cache.")
+ except ArtifactTooLargeException as e:
+ logging.warning(str(e))
exit_code = 0
except: