Skip to content

Commit

Permalink
Merge pull request #29187 from andrasczeh/patch-1
Browse files Browse the repository at this point in the history
CLI: Show constraints in error when getting depndencies
(cherry picked from commit 71a3eb4)
  • Loading branch information
kasperpeulen authored and storybook-bot committed Sep 24, 2024
1 parent 10a687c commit 89a3f32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ export abstract class JsPackageManager {
.find((version) => satisfies(version, constraint));
invariant(
latestVersionSatisfyingTheConstraint != null,
'No version satisfying the constraint.'
`No version satisfying the constraint: ${packageName}${constraint}`
);
return latestVersionSatisfyingTheConstraint;
}
Expand Down

0 comments on commit 89a3f32

Please sign in to comment.