MovnaTeam / movna

Open-source training application.
GNU General Public License v3.0
0 stars 1 forks source link

Catch dependency initialization exceptions at startup #18

Closed BriceCroix closed 12 months ago

BriceCroix commented 1 year ago

This will be initialized at app startup but I think if the app can't retrieve the documentsDirectory there no point to even try to display anything other than an error screen saying Well something fucked up so restart the app please. So we could just try-catch the configureDependencies method in main and if it fails display said error message. If it succeeds we'll launch the app normally

_Originally posted by @ronw98 in https://github.com/MovnaTeam/movna/pull/14#discussion_r1289048622_