Skip to content

Commit

Permalink
Do not show useless information. Handle a proper error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesús Ángel committed Aug 21, 2019
1 parent d7a00aa commit 19a2e71
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions public/kibana-integrations/kibana-visualization.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,20 +173,17 @@ app.directive('kbnVis', function() {
if (!lockFields) {
try {
lockFields = true;
errorHandler.info(
'Detected an incomplete index pattern, refreshing all its known fields...'
);
await genericReq.request(
'GET',
'/elastic/known-fields/all',
{}
);
lockFields = false;
errorHandler.info('Success');
return myRender(raw);
} catch (error) {
lockFields = false;
throw error;
console.log(error.message || error);
errorHandler.handle('An error occurred fetching new index pattern fields.');
}
}
} else {
Expand Down

0 comments on commit 19a2e71

Please sign in to comment.