Skip to content

Commit b80d96a

Browse files
authored
Apply suggestions from code review
1 parent b4dad0b commit b80d96a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/getPackageResolution.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function getPackageResolution({
3333
if (lockFileString.includes("yarn lockfile v1")) {
3434
const parsedYarnLockFile = parseYarnLockFile(lockFileString)
3535
if (parsedYarnLockFile.type !== "success") {
36-
throw new Error("Can't parse lock file")
36+
throw new Error("Could not parse yarn v1 lock file")
3737
} else {
3838
appLockFile = parsedYarnLockFile.object
3939
}
@@ -42,7 +42,7 @@ export function getPackageResolution({
4242
appLockFile = yaml.parse(lockFileString)
4343
} catch (e) {
4444
console.error(e)
45-
throw new Error("Can't parse lock file")
45+
throw new Error("Could not parse yarn v2 lock file")
4646
}
4747
}
4848

0 commit comments

Comments
 (0)