Adding debug log before throwing errors.
This commit is contained in:
parent
43eb32b6d6
commit
5f10d16f4d
|
@ -32,8 +32,8 @@ define(function (require) {
|
|||
return self.checkForKibanaApp()
|
||||
.then(function (kibanaLoaded) {
|
||||
if (!kibanaLoaded) {
|
||||
throw new Error(moment().format('HH:mm:ss.SSS') + ': ' +
|
||||
'Kibana is not loaded, retrying');
|
||||
self.debug('Kibana is not loaded, retrying');
|
||||
throw new Error('Kibana is not loaded, retrying');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -44,8 +44,10 @@ define(function (require) {
|
|||
.then(function (currentUrl) {
|
||||
var navSuccessful = new RegExp(appUrl).test(currentUrl);
|
||||
if (!navSuccessful) {
|
||||
throw new Error(moment().format('HH:mm:ss.SSS') + ': ' +
|
||||
'App failed to load: ' + appName +
|
||||
self.debug('App failed to load: ' + appName +
|
||||
' in ' + defaultTimeout + 'ms' +
|
||||
' currentUrl = ' + currentUrl);
|
||||
throw new Error('App failed to load: ' + appName +
|
||||
' in ' + defaultTimeout + 'ms' +
|
||||
' currentUrl = ' + currentUrl);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue