Skip to content

Commit a48f99d

Browse files
committed
feat: update wording for errors to be more clear
1 parent 63f1be7 commit a48f99d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libraries/rush-lib/src/api/RushConfiguration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ export class RushConfiguration {
808808
if (!this.getProjectByName(decoupledLocalDependency)) {
809809
throw new Error(
810810
`In rush.json, the "${decoupledLocalDependency}" project does not exist,` +
811-
` but was referenced by the decoupledLocalDependencies for ${project.packageName}`
811+
` but was referenced by the decoupledLocalDependencies (previously cyclicDependencyProjects) for ${project.packageName}`
812812
);
813813
}
814814
});

libraries/rush-lib/src/api/RushConfigurationProject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export class RushConfigurationProject {
162162
if (projectJson.cyclicDependencyProjects || projectJson.decoupledLocalDependencies) {
163163
if (projectJson.cyclicDependencyProjects && projectJson.decoupledLocalDependencies) {
164164
throw new Error(
165-
'A project cannot have both decoupledLocalDependencies as well as cyclicDependencyProjects. Please only use the decoupledLocalDependencies instead.'
165+
'A project configuration cannot have both decoupledLocalDependencies as well as cyclicDependencyProjects fields. Please only use the decoupledLocalDependencies configuration instead.'
166166
);
167167
}
168168
for (const cyclicDependencyProject of projectJson.cyclicDependencyProjects ||

0 commit comments

Comments
 (0)