handle error details

This commit is contained in:
yggverse 2024-11-20 10:06:22 +02:00
parent 3191ff0ff0
commit b7900489b0
2 changed files with 4 additions and 4 deletions

View file

@ -71,7 +71,7 @@ impl Auth {
// Done
Ok(profile_identity_gemini_auth_id)
}
Err(_) => return Err(Error::DatabaseRecordsRead(url.to_string())),
Err(reason) => return Err(Error::DatabaseRecordsRead(url.to_string(), reason)),
}
}
@ -92,7 +92,7 @@ impl Auth {
}
}
}
Err(_) => return Err(Error::DatabaseIndex),
Err(reason) => return Err(Error::DatabaseIndex(reason)),
}
Ok(())
}