fix(pip_setup): log content when failing to parse

This commit is contained in:
Rhys Arkins 2019-05-15 07:33:35 +02:00
parent f9596fc7ea
commit 4e65258552

View file

@ -110,7 +110,7 @@ async function extractPackageFile(content, packageFile, config) {
try {
setup = await extractSetupFile(content, packageFile, config);
} catch (err) {
logger.warn({ err }, 'Failed to read setup.py file');
logger.warn({ err, content, packageFile }, 'Failed to read setup.py file');
return null;
}
const requires = [];