Include details in error msg
This commit is contained in:
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -263,7 +263,9 @@ function processGoGraph(goModDir, directDependencies, indirectDependencies) {
|
||||
if (matches.length !== 1) {
|
||||
throw new Error('assertion failed: expected one package in cache with namespace+name. ' +
|
||||
'Found: ' +
|
||||
JSON.stringify(matches));
|
||||
JSON.stringify(matches) +
|
||||
'\n' +
|
||||
`matcher: ${matcher} parentPkg: ${parentPkg} childPkg: ${childPkg}`);
|
||||
}
|
||||
// create the dependency relationship
|
||||
targetPackage.dependsOn(matches[0]);
|
||||
|
||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -63,7 +63,9 @@ export async function processGoGraph (
|
||||
throw new Error(
|
||||
'assertion failed: expected one package in cache with namespace+name. ' +
|
||||
'Found: ' +
|
||||
JSON.stringify(matches)
|
||||
JSON.stringify(matches) +
|
||||
'\n' +
|
||||
`matcher: ${matcher} parentPkg: ${parentPkg} childPkg: ${childPkg}`
|
||||
)
|
||||
}
|
||||
// create the dependency relationship
|
||||
|
||||
Reference in New Issue
Block a user