mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-19 12:10:17 +09:00
update
This commit is contained in:
parent
2c74559010
commit
90ced92876
@ -119,7 +119,9 @@ pub async fn stream_fetch(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
let error: String = err.source().expect("REASON").to_string();
|
let error: String = err.source()
|
||||||
|
.map(|e| e.to_string())
|
||||||
|
.unwrap_or_else(|| "Unknown error occurred".to_string());
|
||||||
println!("Error response: {:?}", error);
|
println!("Error response: {:?}", error);
|
||||||
tauri::async_runtime::spawn( async move {
|
tauri::async_runtime::spawn( async move {
|
||||||
if let Err(e) = window.emit(event_name, ChunkPayload{ request_id, chunk: error.into() }) {
|
if let Err(e) = window.emit(event_name, ChunkPayload{ request_id, chunk: error.into() }) {
|
||||||
|
Loading…
Reference in New Issue
Block a user