Skip to content

Commit

Permalink
re-throw style compilation errors so users can be notified via event …
Browse files Browse the repository at this point in the history
…subscriptions

fixes Tangram Play inline shader compile errors (!)
  • Loading branch information
bcamper committed Jan 4, 2020
1 parent 4609a89 commit e76e4fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/styles/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e76e4fd

Please sign in to comment.