From 8e0907c37dbc9fe3aabd94f1666c3542c574d911 Mon Sep 17 00:00:00 2001 From: Camila Belo Date: Wed, 20 Sep 2023 16:35:06 +0200 Subject: [PATCH] fix(frontend-app-api): root override error message Co-authored-by: Patrik Oldsberg Signed-off-by: Camila Belo --- packages/frontend-app-api/src/wiring/createApp.test.tsx | 2 +- packages/frontend-app-api/src/wiring/parameters.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend-app-api/src/wiring/createApp.test.tsx b/packages/frontend-app-api/src/wiring/createApp.test.tsx index dcbd996f15..e649931403 100644 --- a/packages/frontend-app-api/src/wiring/createApp.test.tsx +++ b/packages/frontend-app-api/src/wiring/createApp.test.tsx @@ -47,7 +47,7 @@ describe('createInstances', () => { }), ]; expect(() => createInstances({ config, plugins })).toThrow( - 'A "root" extension was detected on the config file and root extensions are not configurable', + "A 'root' extension configuration was detected, but the root extension is not configurable", ); }); diff --git a/packages/frontend-app-api/src/wiring/parameters.ts b/packages/frontend-app-api/src/wiring/parameters.ts index 1f4fda12e9..0711f90665 100644 --- a/packages/frontend-app-api/src/wiring/parameters.ts +++ b/packages/frontend-app-api/src/wiring/parameters.ts @@ -237,7 +237,7 @@ export function mergeExtensionParameters(options: { // Prevent root parametrization if (extensionId === 'root') { throw new Error( - 'A "root" extension was detected on the config file and root extensions are not configurable', + "A 'root' extension configuration was detected, but the root extension is not configurable", ); }