fix error zone

This commit is contained in:
Christien Rioux 2023-10-14 14:07:58 -04:00
parent fc32fdd9f3
commit 0ebca108fe

View file

@ -27,6 +27,8 @@ void main() async {
// Ansi colors
ansiColorDisabled = false;
// Catch errors
await runZonedGuarded(() async {
// Logs
initLoggy();
@ -48,7 +50,6 @@ void main() async {
// Run the app
// Hot reloads will only restart this part, not Veilid
runZonedGuarded(() {
runApp(ProviderScope(
observers: const [StateLogger()],
child: LocalizedApp(delegate, VeilidChatApp(theme: initTheme))));