Handled two new specific errors

This commit is contained in:
Jesús Ángel González 2018-02-21 13:53:41 +01:00 committed by Javier Castro
parent 08a90fee08
commit 672694bb7b

View File

@ -46,6 +46,12 @@ app.service('errorHandler', function ( Notifier, appState, $location) {
let text; let text;
switch (message) { switch (message) {
case 'kibana_index_pattern_error':
text = `There seem to be a problem with Wazuh app visualizations in Kibana, please reinstall the Wazuh app.<br>Also you should follow our installation guide.`;
break;
case 'elasticsearch_down':
text = `Could not find .kibana index on Elasticsearch or maybe Elasticsearch is down.<br>Please check it and try again.`;
break;
case 'no_elasticsearch': case 'no_elasticsearch':
text = `Could not connect with elasticsearch, maybe it's down.`; text = `Could not connect with elasticsearch, maybe it's down.`;
break; break;