Merge pull request #4460 from ebarriosjr/lockfile-ts-error-improvement

Lockfile ts error improvement
This commit is contained in:
Ben Lambert
2021-02-12 10:07:52 +01:00
committed by GitHub
3 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Tweak error message in lockfile parsing to include more information.
+1
View File
@@ -119,6 +119,7 @@ Kumar
learnings
lerna
Lerna
lockfile
Luxon
magiclink
mailto
+1 -1
View File
@@ -153,7 +153,7 @@ export class Lockfile {
const acceptedVersion = versions.find(v => semver.satisfies(v, range));
if (!acceptedVersion) {
throw new Error(
`No existing version was accepted for range ${range}, searching through ${versions}`,
`No existing version was accepted for range ${range}, searching through ${versions}, for package ${name}`,
);
}