From 0fe720d6521c6af7547c65376dcc2328ea86088d Mon Sep 17 00:00:00 2001 From: Johann Levesque Date: Thu, 18 Jul 2024 09:10:04 -0400 Subject: [PATCH] commetn 4 --- packages/geoview-core/src/geo/layer/layer.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/geoview-core/src/geo/layer/layer.ts b/packages/geoview-core/src/geo/layer/layer.ts index 7c0624e65eb..251289286f9 100644 --- a/packages/geoview-core/src/geo/layer/layer.ts +++ b/packages/geoview-core/src/geo/layer/layer.ts @@ -916,7 +916,7 @@ export class LayerApi { // TODO: find a more centralized way to trap error and display message api.maps[this.getMapId()].notifications.showError('validation.layer.loadfailed', [layer, this.getMapId()]); - this.#emitLayerError({ layerPath: layer }); + this.#emitLayerError({ layerPath: layer, errorMessage: loggerMessage }); }); } @@ -1733,6 +1733,8 @@ type LayerErrorDelegate = EventDelegateBase; export type LayerErrorEvent = { // The error layer layerPath: string; + + errorMessage: string; }; /**