windows: Do not exit from app in dev builds when cli is not found (#39768)

Piotr Osiewicz created

Release Notes:

- N/A

Change summary

crates/zed/src/main.rs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

Detailed changes

crates/zed/src/main.rs 🔗

@@ -224,7 +224,9 @@ pub fn main() {
         Ok(path) => askpass::set_askpass_program(path),
         Err(err) => {
             eprintln!("Error: {}", err);
-            process::exit(1);
+            if std::option_env!("ZED_BUNDLE").is_some() {
+                process::exit(1);
+            }
         }
     }