From e76e4fd4278c18dccb19ec07d7550bbb76bdd8f7 Mon Sep 17 00:00:00 2001 From: Brett Camper Date: Fri, 3 Jan 2020 21:49:37 -0800 Subject: [PATCH] re-throw style compilation errors so users can be notified via event subscriptions fixes Tangram Play inline shader compile errors (!) --- src/styles/style.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/styles/style.js b/src/styles/style.js index 1747ca0e7..99a4dfbc4 100644 --- a/src/styles/style.js +++ b/src/styles/style.js @@ -435,6 +435,7 @@ export var Style = { catch (e) { log('error', `Style: error compiling program for style '${this.name}' (program key '${key}')`, this, e.stack, e.type, e.shader_errors); + throw e; // re-throw so users can be notified via event subscriptions } } return program;