Skip to content
Snippets Groups Projects
Commit 21c25210 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

refactor: reduce setup.py warnings

parent 46f2c582
No related branches found
No related tags found
No related merge requests found
......@@ -58,12 +58,10 @@ async function extractSetupFile(content, packageFile, config) {
err.message.includes('No such file or directory') &&
!config.gitFs
) {
logger.debug({ err }, 'setup.py extraction error');
throw new Error(
logger.warn(
'File not found error when extracting setup.py. Ask your Renovate administrator to enable gitFs and try again'
);
}
logger.warn({ err }, 'Error extracting setup.py');
throw err;
}
// istanbul ignore if
......@@ -82,7 +80,7 @@ async function extractPackageFile(content, packageFile, config) {
try {
setup = await extractSetupFile(content, packageFile, config);
} catch (err) {
logger.warn({ err }, 'Failed to read setup file');
logger.warn({ err }, 'Failed to read setup.py file');
return null;
}
const requires = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment