Skip to content

Commit

Permalink
improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
muzzammilshahid committed Jun 3, 2024
1 parent 7321cae commit 105fde7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/screens/mobile/mobile_home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,9 @@ class _MobileHomeScaffoldState extends State<MobileHomeScaffold> with TickerProv
await _showCloseRouterDialog(context, routerProvider, routerResult, scaffoldMessenger);
}
} on Exception catch (e) {
scaffoldMessenger
.showSnackBar(SnackBar(content: Text("An error occurred. Please try again. $e")));
scaffoldMessenger.showSnackBar(
SnackBar(content: Text("An error occurred: ${e.runtimeType} - $e. Please try again.")),
);
}
},
),
Expand Down

0 comments on commit 105fde7

Please sign in to comment.