mirror of
https://github.com/pi-hole/web.git
synced 2026-05-03 07:02:09 +01:00
@@ -591,8 +591,8 @@ function listAlert(type, items, data) {
|
|||||||
for (const item in data.processed.errors) {
|
for (const item in data.processed.errors) {
|
||||||
if (Object.prototype.hasOwnProperty.call(data.processed.errors, item)) {
|
if (Object.prototype.hasOwnProperty.call(data.processed.errors, item)) {
|
||||||
let error = data.processed.errors[item].error;
|
let error = data.processed.errors[item].error;
|
||||||
if (error === "UNIQUE constraint failed: domainlist.domain, domainlist.type") {
|
// Replace some error messages with a more user-friendly text
|
||||||
// Replace the error message with a more user-friendly one
|
if (error.indexOf("UNIQUE constraint failed") > -1) {
|
||||||
error = "Already present";
|
error = "Already present";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user