From 59b675562d477a76617d440f344ff413104ba38d Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Mon, 26 Aug 2024 19:37:11 +0200 Subject: [PATCH] Better error message --- src/tui/app/machine/browse.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tui/app/machine/browse.rs b/src/tui/app/machine/browse.rs index 4ed38ee..0293351 100644 --- a/src/tui/app/machine/browse.rs +++ b/src/tui/app/machine/browse.rs @@ -94,8 +94,11 @@ impl IAppInteractBrowse for AppMachine { let client = match MusicBrainzApiClient::new(MUSICHOARD_TUI_HTTP_USER_AGENT) { Ok(client) => client, Err(err) => { - return AppMachine::error(self.inner, format!("cannot fetch: {}", err.to_string())) - .into() + return AppMachine::error( + self.inner, + format!("cannot fetch: HTTP client init failed: {}", err.to_string()), + ) + .into() } }; let mut api = MusicBrainzApi::new(client);