Commit bfddcf5

derdilla <82763757+NobodyForNothing@users.noreply.github.com>
2024-01-15 15:22:11
improve debugging outputs
Signed-off-by: derdilla <82763757+NobodyForNothing@users.noreply.github.com>
1 parent 3d05c2a
Changed files (2)
lib/components/consistent_future_builder.dart
@@ -85,8 +85,11 @@ class _ConsistentFutureBuilderState<T>
       // Might get called before localizations initialize.
       final localizations = AppLocalizations.of(context);
       if (snapshot.hasError) {
-        return Text(localizations?.error(snapshot.error.toString())
-            ?? snapshot.error.toString(),);
+        return Directionality(
+          textDirection: TextDirection.ltr,
+          child: Text(localizations?.error(snapshot.error.toString())
+              ?? snapshot.error.toString(),),
+        );
       }
       switch (snapshot.connectionState) {
         case ConnectionState.none:
lib/main.dart
@@ -55,8 +55,8 @@ Future<Widget> _loadApp() async {
     } else {
       intakeHistory = IntakeHistory([]);
     }
-  } catch (e) {
-    assert(e is PathNotFoundException, e.toString());
+  } catch (e, stack) {
+    assert(e is PathNotFoundException, '$e\n$stack');
     intakeHistory = IntakeHistory([]);
   }
   intakeHistory.addListener(() async {