From e4bf586cff7513ee2c2ab7ff31b6fa298875a1c4 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Mon, 11 Nov 2024 22:26:05 -0700 Subject: [PATCH] SSH Remoting: Improve unsupported error messages (#20529) Updates #19697 Release Notes: - SSH Remoting: Improved error message on unsupported OS/Arch. --- crates/remote/src/ssh_session.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/remote/src/ssh_session.rs b/crates/remote/src/ssh_session.rs index c50a6766122d465ae1818b69387350e06575c23c..b6c7b6875fabeb59a8b7d5fa979fee7408e36db4 100644 --- a/crates/remote/src/ssh_session.rs +++ b/crates/remote/src/ssh_session.rs @@ -1549,14 +1549,18 @@ impl SshRemoteConnection { let os = match os.trim() { "Darwin" => "macos", "Linux" => "linux", - _ => Err(anyhow!("unknown uname os {os:?}"))?, + _ => Err(anyhow!( + "Prebuilt remote servers are not yet available for {os:?}. See https://zed.dev/docs/remote-development" + ))?, }; let arch = if arch.starts_with("arm") || arch.starts_with("aarch64") { "aarch64" } else if arch.starts_with("x86") || arch.starts_with("i686") { "x86_64" } else { - Err(anyhow!("unknown uname architecture {arch:?}"))? + Err(anyhow!( + "Prebuilt remote servers are not yet available for {arch:?}. See https://zed.dev/docs/remote-development" + ))? }; Ok(SshPlatform { os, arch })