refactor(frontend-app-api): rephrase root overriding error message

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2023-09-21 10:04:34 +02:00
parent 4a5bba64d9
commit 7899201594
2 changed files with 4 additions and 2 deletions
@@ -68,7 +68,7 @@ describe('createInstances', () => {
}),
];
expect(() => createInstances({ config, plugins })).toThrow(
'The following plugins are overriding root extensions and root extensions cannot be overridden: plugin',
"The following plugin(s) are overriding the 'root' extension which is forbidden: plugin",
);
});
@@ -206,7 +206,9 @@ export function mergeExtensionParameters(options: {
.filter(({ id }) => id === 'root')
.map(({ source }) => source.id);
throw new Error(
`The following plugins are overriding root extensions and root extensions cannot be overridden: ${rootPluginIds}`,
`The following plugin(s) are overriding the 'root' extension which is forbidden: ${rootPluginIds.join(
',',
)}`,
);
}