From 59206ec0967790efd80187ec9b374d0781f91d55 Mon Sep 17 00:00:00 2001 From: Spencer Date: Fri, 26 Oct 2018 16:57:08 -0700 Subject: [PATCH] [kbn/es] add context to error message (#24664) This just tweaks the kbn-es error message to provide more context than just `Not Found` --- 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);