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

This just tweaks the kbn-es error message to provide more context than just `Not Found`
This commit is contained in:
Spencer 2018-10-26 16:57:08 -07:00 committed by GitHub
parent 5df9747f5a
commit 59206ec096
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);