Skip to content

Commit

Permalink
fix: improve dependency installation error message
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed Aug 22, 2022
1 parent 1c7b439 commit 2070b8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/resolve-dependencies/src/resolveDependencies.ts
Expand Up @@ -756,6 +756,10 @@ async function resolveDependency (
workspacePackages: options.workspacePackages,
})
} catch (err: any) { // eslint-disable-line
console.log('!!!!!!!!!!>>>>>>>>>>>>>>', options.parentPkg.nodeId)
// TODO: improve the error that is thrown here by adding some context info to it
// for instance, when a 404 error happens, I want to know the chain of dependencies to the not found package
// an e2e test should be added
if (wantedDependency.optional) {
skippedOptionalDependencyLogger.debug({
details: err.toString(),
Expand Down

0 comments on commit 2070b8b

Please sign in to comment.