Skip to content

Commit

Permalink
Warn instead of error on duplicate worker source
Browse files Browse the repository at this point in the history
  • Loading branch information
Anand Thakker committed Aug 19, 2016
1 parent f1b5d6a commit 5dae4c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/source/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function Worker(self) {

this.self.registerWorkerSource = function (name, WorkerSource) {
if (this.workerSources[name]) {
throw new Error('Worker source with name "' + name + '" already registered.');
util.warnOnce('Worker source named "' + name + '" already registered.');
}
this.workerSources[name] = new WorkerSource(this.actor, styleLayers);
}.bind(this);
Expand Down

0 comments on commit 5dae4c7

Please sign in to comment.