Skip to content

Commit

Permalink
When the app fails to launch, the Exception is saved (#4810)
Browse files Browse the repository at this point in the history
  • Loading branch information
g123k authored Nov 16, 2023
1 parent 9d03d4b commit 75b6256
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/smooth_app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,11 @@ class _SmoothAppState extends State<SmoothApp> {
future: _initFuture,
builder: (BuildContext context, AsyncSnapshot<void> snapshot) {
if (snapshot.hasError) {
Logs.e(
'The app initialisation failed',
ex: snapshot.error,
stacktrace: snapshot.stackTrace,
);
FlutterNativeSplash.remove();
return _buildError(snapshot);
}
Expand Down

0 comments on commit 75b6256

Please sign in to comment.