Fix assertion message

This commit is contained in:
Guillaume Beraudo
2015-04-01 11:28:17 +02:00
parent 62ce9b44c8
commit 7765d7304c
2 changed files with 4 additions and 2 deletions

View File

@@ -1085,7 +1085,8 @@ ol.render.webgl.ReplayGroup.prototype.getReplay =
if (!goog.isDef(replay)) {
var constructor = ol.render.webgl.BATCH_CONSTRUCTORS_[replayType];
goog.asserts.assert(goog.isDef(constructor),
'a constructor could be found in ol.render.webgl.BATCH_CONSTRUCTORS_');
replayType +
' constructor missing from ol.render.webgl.BATCH_CONSTRUCTORS_');
replay = new constructor(this.tolerance_, this.maxExtent_);
this.replays_[replayType] = replay;
}