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
+6 -6
View File
@@ -28,7 +28,7 @@ export const createNewPrompt = async (token: string, prompt: PromptItem) => {
})
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -59,7 +59,7 @@ export const getPrompts = async (token: string = '') => {
})
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -90,7 +90,7 @@ export const getPromptList = async (token: string = '') => {
})
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -122,7 +122,7 @@ export const getPromptByCommand = async (token: string, command: string) => {
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -158,7 +158,7 @@ export const updatePromptByCommand = async (token: string, prompt: PromptItem) =
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});
@@ -192,7 +192,7 @@ export const deletePromptByCommand = async (token: string, command: string) => {
.catch((err) => {
error = err.detail;
console.log(err);
console.error(err);
return null;
});