mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Adding debug log before throwing errors.
This commit is contained in:
parent
43eb32b6d6
commit
5f10d16f4d
1 changed files with 6 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue