fix(desktop): fail fast when local proxy cert setup fails

This commit is contained in:
Pascal André
2026-04-18 19:33:30 +02:00
parent c2c88e956e
commit 99b2066923

View File

@@ -319,8 +319,9 @@ async fn open_remote_window(app: AppHandle, payload: RemoteWindowPayload) -> Res
})
}
Err(err) => {
eprintln!("[tauri] failed to generate proxy cert, falling back to HTTP: {err}");
None
return Err(format!(
"Failed to create the local HTTPS proxy certificate. This remote HTTPS connection cannot fall back to HTTP because secure cookies would break: {err}"
));
}
};