send text event on error

This commit is contained in:
Henry Hiles 2026-02-28 18:40:03 -05:00
commit f36f3372c7
No known key found for this signature in database
3 changed files with 1 additions and 60 deletions

45
.vscode/launch.json vendored
View file

@ -1,45 +0,0 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "nexusbot",
"preLaunchTask": "rm-socket",
"program": "bin/nexusbot.dart",
"args": [
"--socket",
"./socket",
"--homeserver",
"https://matrix.federated.nexus",
"--name",
"nexusbot",
"--adminRoom",
"#admins:federated.nexus",
"--inviteTo",
"#community:federated.nexus",
"--successUri",
"https://federated.nexus/success",
"--failureUri",
"https://federated.nexus/failure",
"--botPasswordFile",
"secrets/botPassword.txt",
"--smtpPasswordFile",
"secrets/smtpPassword.txt",
"--adminName",
"grapevine",
"--email",
"henry@henryhiles.com",
"--emailAlias",
"info@federated.nexus",
"--mailDomain",
"mail.henryhiles.com",
"--mailName",
"Federated Nexus"
],
"request": "launch",
"type": "dart"
}
]
}

14
.vscode/tasks.json vendored
View file

@ -1,14 +0,0 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "rm-socket",
"type": "shell",
"presentation": {
"reveal": "silent",
"close": true
},
"command": "rm socket || true"
}
]
}

View file

@ -127,7 +127,7 @@ If you have any issues, reply to this email.""",
} }
} }
} catch (error, stackTrace) { } catch (error, stackTrace) {
print("$error\n$stackTrace"); await event.room.sendTextEvent("$error\n$stackTrace");
} }
}); });