[BUILD] Make AWS error message more informative
Original commit: elastic/x-pack-elasticsearch@8f08010aedb7345755b0fa91c51b8e59d6617a6b
@@ -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--
