mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[functional_tests/try] improve final failure message
This commit is contained in:
parent
1c718bcd40
commit
655eb05b03
1 changed files with 2 additions and 2 deletions
|
@ -20,14 +20,14 @@ class Try {
|
|||
lastTry = Date.now();
|
||||
|
||||
if (lastTry - start > timeout) {
|
||||
throw new Error('timeout ' + tempMessage);
|
||||
throw new Error('tryForTime timeout: ' + tempMessage);
|
||||
}
|
||||
|
||||
return bluebird
|
||||
.try(block)
|
||||
.catch(function tryForTimeCatch(err) {
|
||||
Log.debug('tryForTime failure: ' + err.message);
|
||||
tempMessage = err.message;
|
||||
tempMessage = err.stack || err.message;
|
||||
return bluebird.delay(retryDelay).then(attempt);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue