Skip to content

Commit

Permalink
Format error message
Browse files Browse the repository at this point in the history
  • Loading branch information
latin-panda committed Jan 22, 2025
1 parent 8b166e3 commit 62915f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ export type XPathFunctionalityErrorCategory = ExpandUnion<

export abstract class XPathFunctionalityError extends Error {
constructor(functionalityMessagePrefix: string, category: XPathFunctionalityErrorCategory) {
super(`${functionalityMessagePrefix}${category}`);
super(`${functionalityMessagePrefix} ${category}`);
}
}
2 changes: 1 addition & 1 deletion packages/xforms-engine/src/instance/RankControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class RankControl
const sourceValues: string[] = this.mapOptionsByValue().keys();
const hasAllValues = !sourceValues.some((sourceValue) => valuesInOrder.includes(sourceValue));
if (hasAllValues) {
throw new RankFunctionalityError('There are missing options. Rank should have all options');
throw new RankFunctionalityError('There are missing options. Rank should have all options.', 'Rank Control');
}

this.setValueState(valuesInOrder);
Expand Down

0 comments on commit 62915f0

Please sign in to comment.