Changed console logging of errors to use console error logging

This commit is contained in:
Jesper Kristensen
2025-05-15 21:35:07 +02:00
parent ca2cfb5bad
commit 20c1c3f66b
23 changed files with 269 additions and 269 deletions
+14 -14
View File
@@ -20,7 +20,7 @@ export const createNewFunction = async (token: string, func: object) => {
})
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -51,7 +51,7 @@ export const getFunctions = async (token: string = '') => {
})
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -82,7 +82,7 @@ export const exportFunctions = async (token: string = '') => {
})
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -114,7 +114,7 @@ export const getFunctionById = async (token: string, id: string) => {
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -149,7 +149,7 @@ export const updateFunctionById = async (token: string, id: string, func: object
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -181,7 +181,7 @@ export const deleteFunctionById = async (token: string, id: string) => {
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -213,7 +213,7 @@ export const toggleFunctionById = async (token: string, id: string) => {
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -245,7 +245,7 @@ export const toggleGlobalById = async (token: string, id: string) => {
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -277,7 +277,7 @@ export const getFunctionValvesById = async (token: string, id: string) => {
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -309,7 +309,7 @@ export const getFunctionValvesSpecById = async (token: string, id: string) => {
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -344,7 +344,7 @@ export const updateFunctionValvesById = async (token: string, id: string, valves
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -376,7 +376,7 @@ export const getUserValvesById = async (token: string, id: string) => {
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -408,7 +408,7 @@ export const getUserValvesSpecById = async (token: string, id: string) => {
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -443,7 +443,7 @@ export const updateUserValvesById = async (token: string, id: string, valves: ob
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});