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