Skip to content

Commit

Permalink
update to self reference error message
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelynJefferson committed Sep 5, 2024
1 parent ec1e970 commit f43ef8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/export/ValueSetExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class ValueSetExporter {
composeElement.valueSet = composeElement.valueSet.filter(vs => {
if (vs == valueSet.url) {
logger.error(
`Value set with id ${valueSet.id} has component rule with self referencing value set (by id, value set name, or url). Skipping rule.`
`Value set with id ${valueSet.id} has component rule with self-referencing value set (by id, value set name, or url). Removing self-reference.`
);
}
return vs != valueSet.url;
Expand Down
2 changes: 1 addition & 1 deletion test/export/ValueSetExporter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ describe('ValueSetExporter', () => {
});
expect(loggerSpy.getAllMessages('error')).toHaveLength(3);
expect(loggerSpy.getLastMessage('error')).toBe(
'Value set with id dinner-vs has component rule with self referencing value set (by id, value set name, or url). Skipping rule.'
'Value set with id dinner-vs has component rule with self-referencing value set (by id, value set name, or url). Removing self-reference.'
);
});

Expand Down

0 comments on commit f43ef8e

Please sign in to comment.