We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4dad0b commit b80d96aCopy full SHA for b80d96a
src/getPackageResolution.ts
@@ -33,7 +33,7 @@ export function getPackageResolution({
33
if (lockFileString.includes("yarn lockfile v1")) {
34
const parsedYarnLockFile = parseYarnLockFile(lockFileString)
35
if (parsedYarnLockFile.type !== "success") {
36
- throw new Error("Can't parse lock file")
+ throw new Error("Could not parse yarn v1 lock file")
37
} else {
38
appLockFile = parsedYarnLockFile.object
39
}
@@ -42,7 +42,7 @@ export function getPackageResolution({
42
appLockFile = yaml.parse(lockFileString)
43
} catch (e) {
44
console.error(e)
45
+ throw new Error("Could not parse yarn v2 lock file")
46
47
48
0 commit comments