mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-03 11:16:46 +00:00
fix(app): windows server spawning error
This commit is contained in:
@@ -126,10 +126,18 @@ pub fn spawn_local_server(
|
||||
|
||||
let terminated = async {
|
||||
match exit.await {
|
||||
Ok(payload) => Err(format!(
|
||||
"Sidecar terminated before becoming healthy (code={:?} signal={:?})",
|
||||
payload.code, payload.signal
|
||||
)),
|
||||
Ok(payload) => {
|
||||
let hint = if payload.code == Some(-1073741795) {
|
||||
" (illegal instruction; binary may require unsupported CPU features)"
|
||||
} else {
|
||||
""
|
||||
};
|
||||
|
||||
Err(format!(
|
||||
"Sidecar terminated before becoming healthy (code={:?} signal={:?}){}",
|
||||
payload.code, payload.signal, hint
|
||||
))
|
||||
}
|
||||
Err(_) => Err("Sidecar terminated before becoming healthy".to_string()),
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user