Skip to content

Commit e76e4fd

Browse files
committed
re-throw style compilation errors so users can be notified via event subscriptions
fixes Tangram Play inline shader compile errors (!)
1 parent 4609a89 commit e76e4fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/styles/style.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ export var Style = {
435435
catch (e) {
436436
log('error', `Style: error compiling program for style '${this.name}' (program key '${key}')`,
437437
this, e.stack, e.type, e.shader_errors);
438+
throw e; // re-throw so users can be notified via event subscriptions
438439
}
439440
}
440441
return program;

0 commit comments

Comments
 (0)