Skip to content

Commit 355b99e

Browse files
committed
feat(errors): fix ssr errors to bubble up to browser
closes TrilonIO#281 closes TrilonIO#277
1 parent 12e96bd commit 355b99e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Client/polyfills/temporary-aspnetcore-engine.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,17 +196,27 @@ export function ngAspnetCoreEngine(
196196
moduleRef.destroy();
197197

198198
}, (err) => {
199+
// isStable subscription error (Template / code error)
199200
reject(err);
200201
});
201202

203+
}, err => {
204+
// bootstrapModuleFactory error
205+
reject(err);
202206
});
207+
208+
}, err => {
209+
// getFactory error
210+
reject(err);
203211
});
204212

205213
} catch (ex) {
214+
// try/catch error
206215
reject(ex);
207216
}
208217

209218
});
219+
210220
}
211221

212222
/* ********************** Private / Internal ****************** */

0 commit comments

Comments
 (0)