camera test button: include full error chain

...otherwise this simply says `UNKNOWN`, discarding the details from
`retina`.
This commit is contained in:
Scott Lamb 2023-08-03 15:29:02 -05:00
parent 64ca096ff3
commit 9d07d24bc7
1 changed files with 8 additions and 3 deletions

View File

@ -299,9 +299,14 @@ fn press_test(siv: &mut Cursive, t: db::StreamType) {
let description = match r {
Err(ref e) => {
siv.add_layer(
views::Dialog::text(format!("{} stream at {}:\n\n{}", t.as_str(), &url, e))
.title("Stream test failed")
.dismiss_button("Back"),
views::Dialog::text(format!(
"{} stream at {}:\n\n{}",
t.as_str(),
&url,
e.chain()
))
.title("Stream test failed")
.dismiss_button("Back"),
);
return;
}