Add parameter for db pool size

This commit is contained in:
Tobias Reisinger 2024-05-10 17:43:29 +02:00
commit f26e66d687
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 3 additions and 3 deletions

View file

@ -47,7 +47,7 @@ impl From<&EmgauwaError> for String {
EmgauwaError::Database(err) => String::from(err),
EmgauwaError::Uid(_) => String::from("the uid is in a bad format"),
EmgauwaError::Internal(_) => String::from("internal error"),
EmgauwaError::Connection(_) => String::from("the target controller is not connected"),
EmgauwaError::Connection(uid) => format!("unable to connect to controller with uid: {}", uid),
EmgauwaError::Other(err) => format!("other error: {}", err),
EmgauwaError::Hardware(err) => format!("hardware error: {}", err),
}