From ffea6635e275f909567630d6adb9dfcd4686d957 Mon Sep 17 00:00:00 2001 From: Maarten Plieger Date: Tue, 13 Nov 2018 12:05:59 +0100 Subject: [PATCH] ESGFBrowser now displays errors --- fileviewer/fileviewer.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/fileviewer/fileviewer.js b/fileviewer/fileviewer.js index 3cf49b9..59f6b22 100644 --- a/fileviewer/fileviewer.js +++ b/fileviewer/fileviewer.js @@ -928,9 +928,14 @@ var FileViewerInterface = function(options){ service.getCapabilities(function(){ service.getLayerNames( function(data){httpCallbackWMSCapabilities(data,WMSGetCapabiltiesURL);}, - function(error){console.log(error);}); + function(error){console.log(error); + handleErrorMessage({error:error}); + }); + }, + function(error){ + console.log(error); + handleErrorMessage({error:error}); }, - function(error){console.log(error);}, true );