Improved error handling

This commit is contained in:
2023-01-12 02:01:14 +01:00
parent e9d1cf554d
commit 13f5c87c03
18 changed files with 445 additions and 172 deletions

View File

@@ -27,7 +27,7 @@ impl GoogleHome {
match payload {
Some(payload) => Ok(Response::new(request.request_id, payload)),
_ => Err(anyhow::anyhow!("Something went wrong, expected at least ResponsePayload")),
_ => Err(anyhow::anyhow!("Expected at least one ResponsePayload")),
}
}