mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[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:
parent
5df9747f5a
commit
59206ec096
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue