Compare commits

...

1 Commits

Author SHA1 Message Date
AJ ONeal
b135d5c48f fix: catch and log floating update promise 2025-02-07 11:33:22 +00:00

View File

@@ -398,15 +398,21 @@ BuildsCacher.create = function ({ ALL_TERMS, installers, caches }) {
return;
}
projInfo = await getLatestBuilds(Releases, installersDir, cacheDir, name);
let latestProjInfo = BuildsCacher.transformAndUpdate(
name,
projInfo,
meta,
date,
bc,
);
bc._caches[name] = latestProjInfo;
projInfo = await getLatestBuilds(Releases, installersDir, cacheDir, name)
.then(function () {
let latestProjInfo = BuildsCacher.transformAndUpdate(
name,
projInfo,
meta,
date,
bc,
);
bc._caches[name] = latestProjInfo;
})
.catch(function (err) {
console.error(`Fail when fetching latest builds for '${name}'`);
console.error(err);
});
});
return projInfo;