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