Skip to content

Commit

Permalink
Merge pull request #2549 from camptocamp/wmts_error_message
Browse files Browse the repository at this point in the history
Better error message format for WMTS loading error
  • Loading branch information
fredj committed Apr 26, 2017
2 parents 56f1f4f + ef33454 commit 772df22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contribs/gmf/src/services/themesservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,9 @@ gmf.Themes.prototype.getBgLayers = function(appDimensions) {
gmfLayerWMTS.layer || '',
gmfLayer.dimensions
).then(callback.bind(null, gmfLayer)).then(null, function(response) {
console.error('unable to get capabilities', gmfLayerWMTS.layer, gmfLayerWMTS.url);
console.error(response['message']);
console.error(response['stack']);
var message = 'Unable to build layer "' + gmfLayerWMTS.layer + '" from WMTSCapabilities: ' + gmfLayerWMTS.url + '\n';
message += 'OpenLayers error is "' + response['message'];
console.error(message);
// Continue even if some layers have failed loading.
return $q.resolve(undefined);
});
Expand Down

0 comments on commit 772df22

Please sign in to comment.