fix: add error logging for various API calls across components
Deploy to VPS / deploy (push) Successful in 2m20s
Deploy to VPS / deploy (push) Successful in 2m20s
This commit is contained in:
@@ -51,8 +51,8 @@ export function Chatbot() {
|
||||
try {
|
||||
await chatbotApi.clearHistory();
|
||||
setMessages([]);
|
||||
} catch {
|
||||
// ignore
|
||||
} catch (err) {
|
||||
console.error("chatbot/clearHistory:", err);
|
||||
}
|
||||
}, []);
|
||||
|
||||
@@ -78,7 +78,8 @@ export function Chatbot() {
|
||||
timestamp: resp.timestamp,
|
||||
},
|
||||
]);
|
||||
} catch {
|
||||
} catch (err) {
|
||||
console.error("chatbot/send:", err);
|
||||
setMessages((prev) => [
|
||||
...prev,
|
||||
{
|
||||
|
||||
@@ -43,8 +43,8 @@ export function LiveStats() {
|
||||
guildCount: guilds.length,
|
||||
wsConnected: false,
|
||||
});
|
||||
} catch {
|
||||
// ignore
|
||||
} catch (err) {
|
||||
console.error("live-stats:", err);
|
||||
} finally {
|
||||
if (!cancelled) setLoading(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user