diff --git a/packages/planet/src/component/planet-component-loader.spec.ts b/packages/planet/src/component/planet-component-loader.spec.ts index ceb24d0..9211022 100644 --- a/packages/planet/src/component/planet-component-loader.spec.ts +++ b/packages/planet/src/component/planet-component-loader.spec.ts @@ -64,7 +64,7 @@ describe('PlanetComponentLoader', () => { expect(() => { loadApp1Component(app2ModuleRef); - }).toThrowError(`${app1Name} not registered components`); + }).toThrowError(`${app1Name}'s component(app1-projects) is not registered`); registerAppComponents(app1ModuleRef); tick(); diff --git a/packages/planet/src/component/planet-component-loader.ts b/packages/planet/src/component/planet-component-loader.ts index 5eb8a8a..0615ed6 100644 --- a/packages/planet/src/component/planet-component-loader.ts +++ b/packages/planet/src/component/planet-component-loader.ts @@ -157,7 +157,7 @@ export class PlanetComponentLoader { if (componentFactory) { return componentFactory(componentName, config); } else { - throw new Error(`${app} not registered components`); + throw new Error(`${app}'s component(${componentName}) is not registered`); } }), finalize(() => {