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
+7 -7
View File
@@ -15,7 +15,7 @@ export const getGravatarUrl = async (token: string, email: string) => {
return res.json();
})
.catch((err) => {
console.log(err);
console.error(err);
error = err;
return null;
});
@@ -41,7 +41,7 @@ export const executeCode = async (token: string, code: string) => {
return res.json();
})
.catch((err) => {
console.log(err);
console.error(err);
error = err;
if (err.detail) {
@@ -75,7 +75,7 @@ export const formatPythonCode = async (token: string, code: string) => {
return res.json();
})
.catch((err) => {
console.log(err);
console.error(err);
error = err;
if (err.detail) {
@@ -110,7 +110,7 @@ export const downloadChatAsPDF = async (token: string, title: string, messages:
return res.blob();
})
.catch((err) => {
console.log(err);
console.error(err);
error = err;
return null;
});
@@ -136,7 +136,7 @@ export const getHTMLFromMarkdown = async (token: string, md: string) => {
return res.json();
})
.catch((err) => {
console.log(err);
console.error(err);
error = err;
return null;
});
@@ -170,7 +170,7 @@ export const downloadDatabase = async (token: string) => {
window.URL.revokeObjectURL(url);
})
.catch((err) => {
console.log(err);
console.error(err);
error = err.detail;
return null;
});
@@ -206,7 +206,7 @@ export const downloadLiteLLMConfig = async (token: string) => {
window.URL.revokeObjectURL(url);
})
.catch((err) => {
console.log(err);
console.error(err);
error = err.detail;
return null;
});