Changed console logging of errors to use console error logging
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user