Skip to content

Commit

Permalink
fix: Remove JS calls to getMessage() as this method does not exist on…
Browse files Browse the repository at this point in the history
… error object
  • Loading branch information
mcastets committed Dec 21, 2021
1 parent 4aa005d commit c7e60a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/browser/PluginMarker.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ PluginMarker.prototype.__create = function(markerId, pluginOptions, onSuccess, o
});
};
img.onerror = function(error) {
console.warn(error.getMessage());
console.warn('[PluginMarker] Could not load img', error);
onSuccess(marker, {
'__pgmId': markerId,
'width': 20,
Expand Down
2 changes: 1 addition & 1 deletion src/browser/PluginMarkerCluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ PluginMarkerCluster.prototype.redrawClusters = function(onSuccess, onError, args
}
self.pluginMarkers[clusterId_markerId] = STATUS.DELETED;

console.warn(error.getMessage());
console.warn('[PluginMarkerCluster] Could not read icon', error);
self.deleteMarkers.push(clusterId_markerId);
resolve();
});
Expand Down

0 comments on commit c7e60a0

Please sign in to comment.