Better error message
This commit is contained in:
parent
1578a1d1f8
commit
59b675562d
@ -94,8 +94,11 @@ impl<MH: IMusicHoard> IAppInteractBrowse for AppMachine<MH, AppBrowse> {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user