Skip to content

Commit d635e7b

Browse files
committed
optimize error message
1 parent a5928b8 commit d635e7b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

libraries/rush-lib/src/utilities/HotlinkManager.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,9 @@ export class HotlinkManager {
226226
version
227227
);
228228
if (sourcePathSet.size === 0) {
229-
throw new Error(`Cannot find package ${packageName} in ${consumerPackagePnpmDependenciesFolderPath}`);
229+
throw new Error(
230+
`Cannot find package ${packageName} ${version} in ${consumerPackagePnpmDependenciesFolderPath}`
231+
);
230232
}
231233
await this._hardLinkToLinkedPackageAsync(terminal, linkedPackagePath, sourcePathSet, subspaceName);
232234
await this._modifyAndSaveLinkStateAsync((linksBySubspaceName) => {

0 commit comments

Comments
 (0)