Skip to content

Commit

Permalink
commetn 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann Levesque authored and Johann Levesque committed Jul 18, 2024
1 parent 5b715ec commit 0fe720d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/geoview-core/src/geo/layer/layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
});
}

Expand Down Expand Up @@ -1733,6 +1733,8 @@ type LayerErrorDelegate = EventDelegateBase<LayerApi, LayerErrorEvent, void>;
export type LayerErrorEvent = {
// The error layer
layerPath: string;

errorMessage: string;
};

/**
Expand Down

0 comments on commit 0fe720d

Please sign in to comment.