Skip to content

Commit

Permalink
chore: minor change to error messages (#198)
Browse files Browse the repository at this point in the history
Co-authored-by: Joel Denning <[email protected]>
  • Loading branch information
arturovt and joeldenning authored May 25, 2020
1 parent 4aecbbe commit 39b1599
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/browser-lib/single-spa-angular.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function mount(opts, props) {

return bootstrapPromise.then(module => {
if (!module || typeof module.destroy !== 'function') {
throw Error(`single-spa-angular: the opts.bootstrapFunction returned a promise that did not resolve with a valid Angular module. Did you call platformBrowser().bootstrapModuleFactory() correctly?`);
throw Error(`single-spa-angular: the opts.bootstrapFunction returned a promise that did not resolve with a valid Angular module. Did you call platformBrowserDynamic().bootstrapModule() correctly?`);
}

const singleSpaPlatformLocation: SingleSpaPlatformLocation | null = module.injector.get(
Expand All @@ -101,7 +101,7 @@ function mount(opts, props) {
// So if he provided `Router` but didn't provide `BrowserPlatformLocation` then we have to inform him.
if (opts.Router && singleSpaPlatformLocation === null) {
throw new Error(`
single-spa-angular: could not retrieve extra providers from the platform injector. Did you call getSingleSpaExtraProviders() when creating platform?
single-spa-angular: could not retrieve extra providers from the platform injector. Did you call platformBrowserDynamic(getSingleSpaExtraProviders()).bootstrapModule() when creating platform?
`);
}

Expand Down

0 comments on commit 39b1599

Please sign in to comment.