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

View File

@@ -20,7 +20,7 @@ export const getModels = async (token: string = '') => {
})
.catch((err) => {
error = err;
console.log(err);
console.error(err);
return null;
});
@@ -51,7 +51,7 @@ export const getBaseModels = async (token: string = '') => {
})
.catch((err) => {
error = err;
console.log(err);
console.error(err);
return null;
});
@@ -80,7 +80,7 @@ export const createNewModel = async (token: string, model: object) => {
})
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -115,7 +115,7 @@ export const getModelById = async (token: string, id: string) => {
.catch((err) => {
error = err;
console.log(err);
console.error(err);
return null;
});
@@ -150,7 +150,7 @@ export const toggleModelById = async (token: string, id: string) => {
.catch((err) => {
error = err;
console.log(err);
console.error(err);
return null;
});
@@ -186,7 +186,7 @@ export const updateModelById = async (token: string, id: string, model: object)
.catch((err) => {
error = err;
console.log(err);
console.error(err);
return null;
});
@@ -221,7 +221,7 @@ export const deleteModelById = async (token: string, id: string) => {
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -253,7 +253,7 @@ export const deleteAllModels = async (token: string) => {
.catch((err) => {
error = err;
console.log(err);
console.error(err);
return null;
});