diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-06-07 16:38:06 -0400 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-06-07 16:41:33 -0400 |
commit | de194dad617ef9c35fd03ac6bd8622ebdfa7eb77 (patch) | |
tree | fb0206cac123d71b7fd148acb7ec09fa04ecccb7 | |
parent | a231d41bcbcf4ad32b87968fa92de9c1637201f8 (diff) | |
download | buildstream-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.py | 5 |
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: |