fix(gui): return error message instead of generic while problems occured when updating an indexer

This commit is contained in:
JigSawFr 2017-08-20 13:11:46 +02:00
parent 952b6d7f95
commit 26dd740a53
1 changed files with 4 additions and 4 deletions

View File

@ -142,7 +142,7 @@ function reloadIndexers() {
$('#indexers div.dataTables_filter input').focusWithoutScrolling();
openSearchIfNecessary();
}).fail(function () {
doNotify("Error loading indexers, request to Jackett server failed", "danger", "glyphicon glyphicon-alert");
doNotify("Error loading indexers, request to Jackett server failed, is server running ?", "danger", "glyphicon glyphicon-alert");
});
}
@ -214,7 +214,7 @@ function displayUnconfiguredIndexersList() {
doNotify("Configuration failed: " + data.error, "danger", "glyphicon glyphicon-alert");
}
}).fail(function () {
doNotify("Request to Jackett server failed", "danger", "glyphicon glyphicon-alert");
doNotify("Request to Jackett server failed, is server running ?", "danger", "glyphicon glyphicon-alert");
});
});
});
@ -611,8 +611,8 @@ function populateSetupForm(indexerId, name, config, caps, link, alternativesitel
}
doNotify("Configuration failed: " + data.error, "danger", "glyphicon glyphicon-alert");
}
}).fail(function () {
doNotify("Request to Jackett server failed", "danger", "glyphicon glyphicon-alert");
}).fail(function (data) {
doNotify("An error occured while updating this indexer: " + data.responseJSON.error, "danger", "glyphicon glyphicon-alert");
}).always(function () {
$goButton.html(originalBtnText);
$goButton.prop('disabled', false);