From 1a56e38fe22336e6b6587ff7d99218295e28235f Mon Sep 17 00:00:00 2001 From: sigoden Date: Thu, 25 Apr 2024 14:39:31 +0800 Subject: refactor: fix typo and some error message (#438) --- src/client/qianwen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/qianwen.rs') diff --git a/src/client/qianwen.rs b/src/client/qianwen.rs index 76cc712..68e3666 100644 --- a/src/client/qianwen.rs +++ b/src/client/qianwen.rs @@ -320,7 +320,7 @@ async fn upload(model: &str, api_key: &str, url: &str) -> Result { let status = res.status(); if res.status() != 200 { let text = res.text().await?; - bail!("{status}, {text}") + bail!("Invalid response data: {text} (status: {status})") } Ok(format!("oss://{key}")) } -- cgit v1.2.3