Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
orta authored Sep 28, 2022
1 parent b4dad0b commit b80d96a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/getPackageResolution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function getPackageResolution({
if (lockFileString.includes("yarn lockfile v1")) {
const parsedYarnLockFile = parseYarnLockFile(lockFileString)
if (parsedYarnLockFile.type !== "success") {
throw new Error("Can't parse lock file")
throw new Error("Could not parse yarn v1 lock file")
} else {
appLockFile = parsedYarnLockFile.object
}
Expand All @@ -42,7 +42,7 @@ export function getPackageResolution({
appLockFile = yaml.parse(lockFileString)
} catch (e) {
console.error(e)
throw new Error("Can't parse lock file")
throw new Error("Could not parse yarn v2 lock file")
}
}

Expand Down

0 comments on commit b80d96a

Please sign in to comment.