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

fix(pip_setup): detect no file found and warn

parent 30df7a12
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,17 @@ async function extractSetupFile(content, packageFile, config) {
timeout: 5000,
}));
} catch (err) {
// istanbul ignore if
if (
err.message &&
err.message.includes('No such file or directory') &&
!config.gitFs
) {
logger.debug({ err }, 'setup.py extraction error');
throw new Error(
'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;
}
......
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