Skip to content

Commit 6451f52

Browse files
committed
Provide hint for SIGILL (#858)
1 parent ad27916 commit 6451f52

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

chess/engine.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,8 @@ def __init__(self, engine: ProtocolT) -> None:
12291229
self.finished: asyncio.Future[None] = asyncio.Future()
12301230

12311231
def _engine_terminated(self, engine: ProtocolT, code: int) -> None:
1232-
exc = EngineTerminatedError(f"engine process died unexpectedly (exit code: {code})")
1232+
hint = ", binary not compatible with cpu?" if code in [-4, 0xc000001d] else ""
1233+
exc = EngineTerminatedError(f"engine process died unexpectedly (exit code: {code}{hint})")
12331234
if self.state == CommandState.ACTIVE:
12341235
self.engine_terminated(engine, exc)
12351236
elif self.state == CommandState.CANCELLING:

0 commit comments

Comments
 (0)