Skip to content

Commit

Permalink
TEST: Add resolution error messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
JPercival committed May 14, 2024
1 parent 1a32f03 commit fdb4881
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ private NpmPackage resolveDependency(String canonical, String packageId, String
try {
pl = fetchJson(Utilities.pathURL(canonical, "package-list.json"));
} catch (Exception e) {
logger.error(igver + ": Error fetching package list from " + canonical + ": " + e.getMessage(), e);
return null;
}
if (!canonical.equals(pl.get("canonical").getAsString()))
Expand All @@ -252,6 +253,8 @@ private NpmPackage resolveDependency(String canonical, String packageId, String
Utilities.pathURL(o.get("path").getAsString(), "package.tgz"));
}
}

logger.error("no package found for: {}, {}, {}", canonical, packageId, igver);
return null;
}

Expand Down

0 comments on commit fdb4881

Please sign in to comment.