[kbn/es] add context to error message (#24664) (#24699)

This just tweaks the kbn-es error message to provide more context than just `Not Found`
This commit is contained in:
Spencer 2018-10-29 09:15:14 -07:00 committed by GitHub
parent 95a3aa356b
commit 7eccf8b4ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,7 +89,7 @@ function downloadFile(url, dest, log) {
}
if (!res.ok) {
return reject(new Error(res.statusText));
return reject(new Error(`Unable to download elasticsearch snapshot: ${res.statusText}`));
}
const stream = fs.createWriteStream(downloadPath);