diff --git a/js/app/controllers/EpnTapModule.js b/js/app/controllers/EpnTapModule.js index 6978816..b6463a1 100644 --- a/js/app/controllers/EpnTapModule.js +++ b/js/app/controllers/EpnTapModule.js @@ -405,6 +405,8 @@ Ext.define('amdaDesktop.EpnTapModule', { var timeMax = metadataStore.max('time_max'); timeSelector.setLimits(timeMin, timeMax); timeSelector.setInterval(timeMin, timeMax); + // console.log("Done services"); + // loadMask.hide(); }, /** @@ -433,17 +435,25 @@ Ext.define('amdaDesktop.EpnTapModule', { fillGranules: function(granules) { if (granules["error"] != null) { console.log('Can not get request response:', granules["error"]); + if(granules["error"] == "no result") { + alert("There is no result for this query."); + } else { + alert("Can not display granules due to an error from the selected epn-tap service."); + } } else { try { Ext.getCmp('epnTapGranulesGrid').getStore().removeAll(); Ext.getCmp('epnTapGranulesGrid').getStore().add(granules); } catch( e ) { console.log('Can not add granules: ' + e); + alert("Can not display granules due to an error from the selected epn-tap service."); } } Ext.getCmp('epnTapServicesGrid').setDisabled(false); Ext.getCmp('epnTapGranulesGrid').setDisabled(false); Ext.getCmp('epnTapServicesGrid').getEl().setStyle('cursor', 'default'); // CSS is correctly changed but without visible result. + // console.log("Done granules"); + // loadMask.hide(); }, /** diff --git a/php/classes/VOTableMgr.php b/php/classes/VOTableMgr.php index eeb6103..c0663c3 100644 --- a/php/classes/VOTableMgr.php +++ b/php/classes/VOTableMgr.php @@ -269,7 +269,7 @@ class VOTableMgr { $this->stream = base64_decode($query_stream->textContent); $stream_len = strlen($this->stream); if($stream_len == 0) { - $this->votable_error = "There is no result for this query."; + $this->votable_error = "no result"; return null; } while($this->c < strlen($this->stream)) { -- libgit2 0.21.2