console.log mit console.error ersetzt

This commit is contained in:
Technoir committed 2026-10-11 14:45:45 +02:00
1 parent 96a0876035
commit 2e062f60b9
2 files changed
+10 -10

No files matched your search

@@ -9,7 +9,7 @@ async function addList(listName) {
const json = await response.json();
if (!response.ok) {
console.log(`error creating list ${json}`);
console.error(`error creating list ${json}`);
return;
}
@@ -33,7 +33,7 @@ function editList(listLi) {
if (!response.ok) {
const json = await response.json();
console.log(`error editing list ${json}`);
console.error(`error editing list ${json}`);
return;
}
@@ -58,7 +58,7 @@ async function deleteList(listElement) {
if (!response.ok) {
const json = await response.json();
console.log(`error deleting list ${json}`);
console.error(`error deleting list ${json}`);
return;
}
@@ -14,7 +14,7 @@ async function addItem(itemName, itemAmount, categoryID) {
const json = await response.json();
if (!response.ok) {
console.log(`Error, item couldnt be created ${json}`);
console.error(`Error, item couldnt be created ${json}`);
return;
}
@@ -29,7 +29,7 @@ async function addCategory(categoryName) {
const json = await response.json();
if (!response.ok) {
console.log(`Error, category couldnt be created ${json}`)
console.error(`Error, category couldnt be created ${json}`)
return;
}
@@ -58,7 +58,7 @@ async function editItem(textElement) {
if (!response.ok) {
const json = await response.json();
console.log(`Error editingItem ${json}`);
console.error(`Error editingItem ${json}`);
return;
}
@@ -98,7 +98,7 @@ function editCategory(categoryElement) {
if (!response.ok) {
const json = await response.json();
console.log(`Error editing category ${json}`);
console.error(`Error editing category ${json}`);
return;
}
@@ -120,7 +120,7 @@ async function deleteItem(li) {
if (!response.ok) {
const json = await response.json();
console.log(`Error deleting item ${json}`);
console.error(`Error deleting item ${json}`);
return;
}
@@ -133,7 +133,7 @@ async function deleteCategory(deleteAllItems, categoryID) {
if (!response.ok) {
const json = await response.json();
console.log(`Error deleting category ${json}`);
console.error(`Error deleting category ${json}`);
return;
}
ui.deleteCategory(deleteAllItems, categoryID);
@@ -145,7 +145,7 @@ async function deleteAllDoneItems() {
if (!response.ok) {
const json = await response.json();
console.log(`Error deleting all done items ${json}`);
console.error(`Error deleting all done items ${json}`);
return;
}
ui.deleteAllDoneItems();