From 7de16e2757e459924f7e572d24c38d72f520b2d6 Mon Sep 17 00:00:00 2001 From: spalger Date: Fri, 26 Oct 2018 09:00:04 -0700 Subject: [PATCH] [kbn/es] add context to error message --- packages/kbn-es/src/install/snapshot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kbn-es/src/install/snapshot.js b/packages/kbn-es/src/install/snapshot.js index d61f6e58ba20d..47edd8e3db6f9 100644 --- a/packages/kbn-es/src/install/snapshot.js +++ b/packages/kbn-es/src/install/snapshot.js @@ -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);