build: Report caching errors

The ctx.fatal() method uses an exception to stop the build.  Do not
catch it.
This commit is contained in:
Sebastian Huber
2020-10-28 06:34:11 +01:00
parent 99494370d6
commit b052e3aefa

View File

@@ -1109,9 +1109,9 @@ def is_one_item_newer(ctx, path, mtime):
def must_update_item_cache(ctx, path, cache_file): def must_update_item_cache(ctx, path, cache_file):
try: try:
mtime = os.path.getmtime(cache_file) mtime = os.path.getmtime(cache_file)
return is_one_item_newer(ctx, path, mtime)
except: except:
return True return True
return is_one_item_newer(ctx, path, mtime)
def load_from_yaml(load, ctx, data_by_uid, base, path): def load_from_yaml(load, ctx, data_by_uid, base, path):