-
Notifications
You must be signed in to change notification settings - Fork 200
Console errors showing up in create connection pages #293
Comments
I think it would be good to catch the errors, as they are valid and could be helpful. I'll fix this specific issue today and will think about how to best handle the errors after. |
I've spotted the same error and Connection not loading properly on list page. Unfortunately it blocks creation of new connection until Connection page is reloaded manually.
|
@dsimansk: Please make sure your branch is up to date with the latest changes. I merged a fix for that along with the Change Detector refactor last Friday.
Indeed, but let me remark that we should escape away from There is not much we can do when it comes to mismatches between template and component class bindings (that case scenario will always incur in an unhandled exception no matter what), but for the rest of cases, Angular already provides a centralized way to intercept and handle errors by means of the For the sake of a better exception handling experience, we should override that class with our own @Injectable()
export class SyndesisErrorHandler implements ErrorHandler {
handleError(error) {
log.errorc(error); // Or our very own logger provider
}
} And then, at AppModule: @NgModule({
declarations: [AppComponent],
imports: [
// ...
],
providers: [{
provide: ErrorHandler,
useClass: SyndesisErrorHandler // <=== Look Ma! App is now more resilient! ;D
},
// ...
],
bootstrap: [AppComponent]
})
export class AppModule {} This is part of the proposed changes in the Angular 5/6 epic, as part of the DEBUG mode. |
@deeleman well it seems that |
All right. I believe it is safe to close this issue in the meantime. |
@kahboom wonder, do we need to just catch these errors or dispose of the tour service instance? Not sure...
The text was updated successfully, but these errors were encountered: