[BUILD] Make AWS error message more informative

Original commit: elastic/x-pack-elasticsearch@42cca7ed82
This commit is contained in:
David Roberts 2017-09-14 14:46:48 +01:00
parent 7d19264363
commit 104a3a323f
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ S3Object getZip() {
return client.getObject('prelert-artifacts', key)
} catch (AmazonServiceException e) {
if (e.getStatusCode() != 403) {
throw new GradleException('Error while trying to get ml-cpp snapshot', e)
throw new GradleException('Error while trying to get ml-cpp snapshot: ' + e.getMessage(), e)
}
sleep(500)
retries--