Compare commits

...

2 commits

Author SHA1 Message Date
fa8ce28f88 Fix reaction emoji processing on Windows 2025-02-04 17:07:25 +13:00
be06caf2b4 Clean up log message 2025-02-04 17:01:06 +13:00
2 changed files with 2 additions and 4 deletions

View file

@ -3796,4 +3796,4 @@
🇲🇫 🇲🇫
🇸🇯 🇸🇯
🇹🇦 🇹🇦
🇺🇲 🇺🇲

View file

@ -33,9 +33,7 @@ function guard(type, fn) {
try { try {
return await fn(event, ...args) return await fn(event, ...args)
} catch (e) { } catch (e) {
console.error("hit event-dispatcher's error handler with this exception:") console.error(`Exception while processing a ${type} Matrix event:`)
console.error(e) // TODO: also log errors into a file or into the database, maybe use a library for this? or just wing it?
console.error(`while handling this ${type} gateway event:`)
console.dir(event, {depth: null}) console.dir(event, {depth: null})
if (Date.now() - lastReportedEvent < 5000) return if (Date.now() - lastReportedEvent < 5000) return