Merge pull request #1431 from pi-hole/fix/memory_warning

Extend warning shown on server-side data processing errors
This commit is contained in:
Adam Warner
2020-06-04 18:17:23 +01:00
committed by GitHub

View File

@@ -142,7 +142,11 @@ function handleAjaxError(xhr, textStatus) {
} else if (xhr.responseText.indexOf("Connection refused") !== -1) {
alert("An error occurred while loading the data: Connection refused. Is FTL running?");
} else {
alert("An unknown error occurred while loading the data.\n" + xhr.responseText);
alert(
"An unknown error occurred while loading the data.\n" +
xhr.responseText +
"\nCheck the server's log files (/var/log/lighttpd/error.log when you're using the default Pi-hole web server) for details. You may need to increase the memory available for Pi-hole in case you requested a lot of data."
);
}
$("#all-queries_processing").hide();