catch errs
This commit is contained in:
parent
0bc13515e5
commit
5f45903d79
1 changed files with 63 additions and 59 deletions
|
@ -37,6 +37,7 @@ void main(List<String> argsRaw) async {
|
|||
|
||||
final client = await container.read(ClientController.provider.future);
|
||||
client.onTimelineEvent.stream.listen((event) async {
|
||||
try {
|
||||
final settings = container.read(SettingsController.provider)!;
|
||||
|
||||
if (event.room.canonicalAlias != settings.adminRoom) return;
|
||||
|
@ -115,6 +116,9 @@ If you have any issues, reply to this email.""",
|
|||
);
|
||||
}
|
||||
}
|
||||
} catch (error, stackTrace) {
|
||||
print("$error\n$stackTrace");
|
||||
}
|
||||
});
|
||||
|
||||
final handler = const Pipeline()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue