diff options
author | Daniel Moody <daniel.moody@mongodb.com> | 2022-01-13 15:54:08 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2022-12-01 20:49:55 (GMT) |
commit | e5550e243cec6ea508d779966b6e1da2608c2e5b (patch) | |
tree | 4122d3d319e4bb54d8dea4e73cf46e0c2c935dbf /SCons/Taskmaster | |
parent | 5aac2e5b2d9c95492148d5d87392771f172df6bb (diff) | |
download | SCons-e5550e243cec6ea508d779966b6e1da2608c2e5b.zip SCons-e5550e243cec6ea508d779966b6e1da2608c2e5b.tar.gz SCons-e5550e243cec6ea508d779966b6e1da2608c2e5b.tar.bz2 |
Added error message when failure to delete partial cache retrieval occurs.
Diffstat (limited to 'SCons/Taskmaster')
-rw-r--r-- | SCons/Taskmaster/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/SCons/Taskmaster/__init__.py b/SCons/Taskmaster/__init__.py index 3f0e700..0fc1a41 100644 --- a/SCons/Taskmaster/__init__.py +++ b/SCons/Taskmaster/__init__.py @@ -65,6 +65,8 @@ NODE_UP_TO_DATE = SCons.Node.up_to_date NODE_EXECUTED = SCons.Node.executed NODE_FAILED = SCons.Node.failed +display = SCons.Util.display + print_prepare = False # set by option --debug=prepare # A subsystem for recording stats about how different Nodes are handled by @@ -241,8 +243,8 @@ class Task(ABC): for t in cached_targets: try: t.fs.unlink(t.get_internal_path()) - except (IOError, OSError): - pass + except (IOError, OSError) as e: + display("scons: failed to delete partial cache file %s: %s" % (t.get_internal_path(), e)) self.targets[0].build() else: for t in cached_targets: |