Skip to content

Commit

Permalink
[kbn/es] add context to error message (#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 authored Oct 26, 2018
1 parent 5df9747 commit 59206ec
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 59206ec

Please sign in to comment.