Skip to content

Commit

Permalink
fix(enterprise): silence unactionable warning
Browse files Browse the repository at this point in the history
An Enterprise installation might not have access to public GH, or their
private registry might not be 100% API compatible, so this only creates
errors that aren’t actionable.
  • Loading branch information
janl committed Feb 19, 2020
1 parent f836541 commit dd2c89b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion utils/initial-branch-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,14 @@ async function addNPMPackageData (dependencyInfo, registryGet, log) {
})
return dep
} catch (err) {
log.error('npm: Could not get package data', { dependency: dep, error: err })
if (!env.IS_ENTERPRISE) {
/*
An Enterprise installation might not have access to public GH, or their
private registry might not be 100% API compatible, so this only creates
errors that aren’t actionable.
*/
log.error('npm: Could not get package data', { dependency: dep, error: err })
}
}
})
}
Expand Down

0 comments on commit dd2c89b

Please sign in to comment.