add: provide more information on psql and redis connection errors

This commit is contained in:
trisua 2025-05-28 13:41:19 -04:00
parent 013bc0b45f
commit 22ae479bd7
4 changed files with 23 additions and 9 deletions

View file

@ -30,7 +30,7 @@ pub struct DataManager(
impl DataManager {
/// Obtain a connection to the staging database.
pub(crate) async fn connect(&self) -> Result<Connection> {
Ok(self.3.get().await.unwrap())
Ok(self.3.get().await.expect("ERROR_TETRATTO_PSQL_CON"))
}
/// Create a new [`DataManager`] (and init database).