How to use the esp-js-ui.ModuleChangeType.Error function in esp-js-ui

To help you get started, we’ve selected a few esp-js-ui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github esp / esp-js / examples / esp-js-ui-module-based-app / src / shell / models / shellModel.ts View on Github external
this.addDisposable(moduleLoadStream.subscribeWithRouter(this.router, this.modelId, (change: ModuleLoadResult) => {
                    _log.debug(`Load Change detected`, change);

                    if (change.type === ModuleChangeType.Error) {
                        _log.error(`Pre-requisite failed. Pre Req Name: ${change.prerequisiteResult.name}, Error Message: ${change.errorMessage}`);
                    } else {
                        this.splashScreen = {
                            state: SplashScreenState.Loading,
                            message: change.description
                        };
                    }
                },
                e => {