Skip to content

Commit a8144ec

Browse files
committed
fix(angular-server): convert error to printIonError
1 parent ccabc42 commit a8144ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/angular-server/src/ionic-server-module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { DOCUMENT } from '@angular/common';
22
import { APP_ID, NgModule } from '@angular/core';
33
import { BEFORE_APP_SERIALIZED } from '@angular/platform-server';
4+
import { printIonError } from '@ionic/core';
45
import { hydrateDocument } from '@ionic/core/hydrate';
56

67
// @dynamic
@@ -50,7 +51,7 @@ export function hydrateIonicComponents(doc: any, appId: any) {
5051
}).then((hydrateResults) => {
5152
hydrateResults.diagnostics.forEach((d) => {
5253
if (d.type === 'error') {
53-
console.error(d.messageText);
54+
printIonError(d.messageText);
5455
} else if (d.type === 'debug') {
5556
console.debug(d.messageText);
5657
} else {

0 commit comments

Comments
 (0)