Skip to content

Commit

Permalink
Handle errors communicated from backend in segmented fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashid Khan committed Oct 30, 2014
1 parent 3100669 commit d972f65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/kibana/plugins/discover/_segmented_fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ define(function (require) {
// don't throw ClusterBlockException errors
if (err.status === 403 && err.message.match(/ClusterBlockException.+index closed/)) {
resolve(false);
} else if (err.body && err.body.message) {
reject(err.body.message);
} else {
reject(err);
}
Expand Down

0 comments on commit d972f65

Please sign in to comment.