yarn-plugin: expand error message when package is missing from version manifest

Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
This commit is contained in:
MT Lewis
2024-06-04 16:39:07 +01:00
parent acc7caa715
commit 95d7234e91
+8 -1
View File
@@ -86,7 +86,14 @@ export const getPackageVersion = async (descriptor: Descriptor) => {
);
if (!manifestEntry) {
throw new Error(`Package ${ident} not found in manifest`);
throw new Error(
`Package ${ident} not found in manifest for Backstage v${range.selector}. ` +
`This means the specified package is not included in this Backstage ` +
`release. This may imply the package has been replaced with an alternative - ` +
`please review the documentation for the package. If you need to continue ` +
`using this package, it will be necessary to switch to manually managing its ` +
`version.`,
);
}
return manifestEntry.version;