Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
[kbn/es] add context to error message (elastic#24664)
Browse files Browse the repository at this point in the history
This just tweaks the kbn-es error message to provide more context than just `Not Found`
  • Loading branch information
Spencer committed Oct 26, 2018
1 parent 32df0ef commit 003436f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kbn-es/src/install/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 003436f

Please sign in to comment.