fix(cli): show actual provider error instead of generic message (#8374)
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Goose <noreply@block.com>
This commit is contained in:
@@ -852,7 +852,11 @@ pub async fn configure_provider_dialog() -> anyhow::Result<bool> {
|
|||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
spin.stop(style(e.to_string()).red());
|
spin.stop(style(e.to_string()).red());
|
||||||
cliclack::outro(style("Failed to configure provider: init chat completion request with tool did not succeed.").on_red().white())?;
|
cliclack::outro(
|
||||||
|
style(format!("Failed to configure provider: {e}"))
|
||||||
|
.on_red()
|
||||||
|
.white(),
|
||||||
|
)?;
|
||||||
Ok(false)
|
Ok(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user