Compare commits
No commits in common. "fa8ce28f887d42609606e2f7ccff8c07b247cd6b" and "d45a0bdc105bb75afbbd8941be6a5bee3987aaf7" have entirely different histories.
fa8ce28f88
...
d45a0bdc10
2 changed files with 4 additions and 2 deletions
|
@ -33,7 +33,9 @@ function guard(type, fn) {
|
||||||
try {
|
try {
|
||||||
return await fn(event, ...args)
|
return await fn(event, ...args)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(`Exception while processing a ${type} Matrix event:`)
|
console.error("hit event-dispatcher's error handler with this exception:")
|
||||||
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue