nazrinharris / pecunia

Massively ambitious personal finance app.
1 stars 0 forks source link

Improve `PecuniaDB` initialization to handle errors gracefully #147

Open nazrinharris opened 10 months ago

nazrinharris commented 10 months ago

Right now, it returns

Future.error(
        Exception('Attempted to open database without a logged in user'),
        StackTrace.current,
      ),

Which probably works just fine, but if an error occurs, it isn't handled properly. This should be handled in EntryScreen, LoginScreen and RegisterScreen where the database connection would be opened.

Deed