Skip to content

Commit

Permalink
fixup! WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ezzatron committed Mar 28, 2024
1 parent ea270d5 commit 91f9ea8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/variable-composite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,12 @@ export class PartialCompositeError extends CompositeError {

const setNames = setVars.map((variable) => variable.spec.name);
const setList = listFormatter.format(setNames);
const setSuffix = setNames.length === 1 ? "is" : "are";

const unsetNames = notSetVars.map((variable) => variable.spec.name);
const unsetList = listFormatter.format(unsetNames);
const unsetSuffix = unsetNames.length === 1 ? "isn't" : "aren't";

super(
`${setList} ${setSuffix} set but ${unsetList} ${unsetSuffix}, must set all or none`,
`${setList} is set but ${unsetList} isn't, must set all or none`,
notSetVars,
);
}
Expand Down

0 comments on commit 91f9ea8

Please sign in to comment.