Fixed expect type associated to wrong object in Bang scraper.
This commit is contained in:
@@ -558,6 +558,10 @@ async function storeImageFile(media, hashDir, hashSubDir, filename, filedir, fil
|
||||
},
|
||||
};
|
||||
} catch (error) {
|
||||
if (argv.debug) {
|
||||
console.trace(error);
|
||||
}
|
||||
|
||||
logger.error(`Failed to store ${media.id} from ${media.src} at ${filepath}: ${error.message}`);
|
||||
|
||||
await fsPromises.unlink(media.file.path);
|
||||
@@ -1000,6 +1004,10 @@ async function associateReleaseMedia(releases, type = 'release') {
|
||||
logger.error(util.inspect(error.entries.slice(0, 2), null, null, { color: true }), `${Math.min(error.entries.length, 2)} of ${error.length}`);
|
||||
}
|
||||
|
||||
if (argv.debug) {
|
||||
console.trace(error);
|
||||
}
|
||||
|
||||
logger.error(`Failed to store ${type} ${role}: ${error.message} (${error.detail || 'no detail'})`);
|
||||
}
|
||||
}, Promise.resolve());
|
||||
|
||||
Reference in New Issue
Block a user