fix(app): windows server spawning error
This commit is contained in:
parent
d1ee4c8dca
commit
b5ebec82c4
3 changed files with 21 additions and 6 deletions
|
|
@ -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()),
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue