Skip to content

Commit

Permalink
fix: display expected version in checkExactVersion if we could resolv…
Browse files Browse the repository at this point in the history
…e it
  • Loading branch information
christophehurpeau committed Nov 5, 2023
1 parent ad78573 commit 14e1103
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/checks/checkExactVersions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ export async function checkExactVersions(
} else {
reportError(
`Unexpected range dependency in "${type}" for "${dependencyName}"`,
`expecting "${version}" to be exact "${version.slice(
version[1] === '=' ? 2 : 1,
)}".`,
`expecting "${version}" to be exact "${resolvedDep.version}".`,
shouldOnlyWarn,
true,
);
Expand Down

0 comments on commit 14e1103

Please sign in to comment.