Skip to content

Commit 595a679

Browse files
zrmarleygoose
andcommitted
fix(host): preserve unknown upload outcome on IPC fallback
Co-authored-by: goose <[email protected]> Signed-off-by: Zach Marley <[email protected]>
1 parent 0c8259f commit 595a679

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src-tauri/src/host_request.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ pub(crate) async fn plugin_host_upload_bytes_once<R: tauri::Runtime>(
348348
) -> Result<HostResponse, String> {
349349
let deadline = tokio::time::Instant::now() + DEADLINE;
350350
let tauri::ipc::InvokeBody::Raw(bytes) = request.body() else {
351-
return Err("Protected upload body must be raw bytes".into());
351+
return Err("Protected upload body must be raw bytes; outcome may be unknown".into());
352352
};
353353
let metadata = request
354354
.headers()

‎src-tauri/src/host_request/replay_tests.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ fn upload_raw_ipc_consumes_once_without_files_and_binds_bytes_and_metadata() {
642642
)
643643
.unwrap_err();
644644
assert!(fallback_error.contains("raw bytes"));
645-
assert!(!fallback_error.contains("outcome unknown"));
645+
assert!(fallback_error.contains("outcome may be unknown"));
646646
calls.page_load();
647647
assert!(upload_ipc(&fixture, &metadata, raw())
648648
.unwrap_err()

0 commit comments

Comments
 (0)