mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
Add stacktrace to main error screen (#582)
This commit is contained in:
parent
ef5d1f5f60
commit
03d6701bb7
1 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@ Future<void> main() async {
|
|||
secureStorage: secureStorage,
|
||||
initialMigrationVersion: 17);
|
||||
runApp(App());
|
||||
} catch (e) {
|
||||
} catch (e, stacktrace) {
|
||||
runApp(MaterialApp(
|
||||
debugShowCheckedModeBanner: true,
|
||||
home: Scaffold(
|
||||
|
@ -138,7 +138,7 @@ Future<void> main() async {
|
|||
margin:
|
||||
EdgeInsets.only(top: 50, left: 20, right: 20, bottom: 20),
|
||||
child: Text(
|
||||
'Error:\n${e.toString()}',
|
||||
'Error:\n${e.toString()}\nStacktrace: $stacktrace',
|
||||
style: TextStyle(fontSize: 22),
|
||||
)))));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue