display setup errors

This commit is contained in:
2023-04-30 10:52:46 -07:00
parent 913148a75a
commit 871dedf0a3
5 changed files with 41 additions and 14 deletions

View File

@ -90,6 +90,7 @@ pub fn set_auto_launch(is_configured: bool) -> Result<(), SetupError> {
pub fn get_or_create_db_path() -> Result<PathBuf, DataDirError> {
// debug_assertions doesn't always mean we are running in dev
if cfg!(debug_assertions) && std::env::var("HOME").is_ok() {
return Ok(PathBuf::from("./creddy.db"));
}