various: add Display impls for domain enums; improve contextual errors
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ia16e7e34cda6ae3e12590ea1ea9268486a6a6964
This commit is contained in:
parent
fe165f9d4b
commit
cd63eeccff
6 changed files with 143 additions and 77 deletions
|
|
@ -33,7 +33,7 @@ pub async fn get_config(
|
|||
};
|
||||
|
||||
Ok(Json(ConfigResponse {
|
||||
backend: format!("{:?}", config.storage.backend).to_lowercase(),
|
||||
backend: config.storage.backend.to_string(),
|
||||
database_path: config
|
||||
.storage
|
||||
.sqlite
|
||||
|
|
@ -146,7 +146,7 @@ pub async fn update_scanning_config(
|
|||
};
|
||||
|
||||
Ok(Json(ConfigResponse {
|
||||
backend: format!("{:?}", config.storage.backend).to_lowercase(),
|
||||
backend: config.storage.backend.to_string(),
|
||||
database_path: config
|
||||
.storage
|
||||
.sqlite
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue