Skip to content

Commit

Permalink
adding console.log for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
tjsearsz committed Feb 16, 2023
1 parent 317c40b commit 6d6edde
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/main.js

Large diffs are not rendered by default.

19 changes: 13 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,19 @@ const main = async () => {
const lcovBaseArrayForMonorepo = [];
for (const file of lcovArray) {
if (file.path.includes(".info")) {
const rLcove = await promises.readFile(file.path, "utf8");
const data = await parse(rLcove);
lcovArrayForMonorepo.push({
packageName: file.name,
lcov: data,
});
try {
const rLcove = await promises.readFile(file.path, "utf8");
const data = await parse(rLcove);
lcovArrayForMonorepo.push({
packageName: file.name,
lcov: data,
});
} catch (error) {
console.log(
`The LCOV file from the project ${file.name} cannot be parsed. Either the file does not exist or it has been generated empty`,
);
throw error;
}
}
}

Expand Down

0 comments on commit 6d6edde

Please sign in to comment.