fix: add error logging for various API calls across components
Deploy to VPS / deploy (push) Successful in 2m20s

This commit is contained in:
asepharyana
2026-07-26 16:34:06 +07:00
parent 74eabb7231
commit 1021301656
11 changed files with 56 additions and 51 deletions
@@ -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);
}