Not sure why this keeps happening, but here's another small patch

This commit is contained in:
Jocelyn Badgley (Twipped) 2021-08-25 11:31:34 -07:00
parent b5851b4c38
commit 84ec899957
4 changed files with 777 additions and 776 deletions

View File

@ -17,7 +17,7 @@ jobs:
with:
node-version: '14'
cache: 'npm'
- name: Restore node_modulescache
- name: Restore node_modules cache
uses: actions/cache@v2
with:
path: node_modules

View File

@ -54,7 +54,7 @@ module.exports = exports = async function process (tasks, cache) {
});
log.info(`Task (${task.action.name}) failed for file ${output}, fell back to saved duplicate ${status.duplicate}`);
} catch (err2) {
log.error(`Task (${task.action.name}) failed for file ${output}.\n`, err);
log.error(`Task (${task.action.name}) failed for file ${output}, ${status.duplicate} could not be copied.\n`, err);
return false;
}
} else {

View File

@ -73,7 +73,8 @@ module.exports = exports = async function tweets (pages) {
function attachTweet (dict, tweetid) {
if (!hasOwn(twitterCache, tweetid) && twitterBackup[tweetid]) {
log.error(`Tweet ${tweetid} is missing from the cache.`);
log.error(`Tweet ${tweetid} is missing from the cache but exists in backup? How did we get here?`);
twitterCache[tweetid] = tweetparse(twitterBackup[tweetid]);
return;
}
const tweet = twitterCache[tweetid];

File diff suppressed because it is too large Load Diff