From 75b6256b131ac913222f395000b0b2d95c104059 Mon Sep 17 00:00:00 2001 From: Edouard Marquez Date: Thu, 16 Nov 2023 18:23:33 +0100 Subject: [PATCH] When the app fails to launch, the Exception is saved (#4810) --- packages/smooth_app/lib/main.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/smooth_app/lib/main.dart b/packages/smooth_app/lib/main.dart index 313d82f75ee0..f290c86f0785 100644 --- a/packages/smooth_app/lib/main.dart +++ b/packages/smooth_app/lib/main.dart @@ -194,6 +194,11 @@ class _SmoothAppState extends State { future: _initFuture, builder: (BuildContext context, AsyncSnapshot snapshot) { if (snapshot.hasError) { + Logs.e( + 'The app initialisation failed', + ex: snapshot.error, + stacktrace: snapshot.stackTrace, + ); FlutterNativeSplash.remove(); return _buildError(snapshot); }