Skip to content

Commit 6c23130

Browse files
Ihor DykhtaIhor Dykhta
authored andcommitted
follow up
Signed-off-by: Ihor Dykhta <ihordykhta@Ihors-MacBook-Pro.local>
1 parent 8aa6f19 commit 6c23130

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/utils/src/export-map-html.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ export const exportMapToHTML = (options, version = KEPLER_GL_VERSION) => {
104104
};
105105
// Catch unhandled promise rejections (e.g. ES module imports failing
106106
// inside the module-shim script before loadScript is ever called).
107-
window.addEventListener('unhandledrejection', function() {
107+
window.addEventListener('unhandledrejection', function(event) {
108+
console.error('kepler.gl: unhandled rejection during map load', event.reason);
108109
window._keplerShowLoadError('Failed to load the map. Check your internet connection and reload the page.');
109110
});
110111
</script>

0 commit comments

Comments
 (0)