Skip to content

Commit

Permalink
Log subprocess return code
Browse files Browse the repository at this point in the history
  • Loading branch information
notjagan committed Nov 16, 2023
1 parent 301acbd commit 1431588
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions vibrio/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ def stop(self) -> None:
self.log = None

if status != signal.SIGTERM:
raise SystemError("Could not cleanly shutdown server subprocess")
raise SystemError(
f"Could not cleanly shutdown server subprocess; received return code {status}"
)


class ServerAsync(ServerBase):
Expand Down Expand Up @@ -192,4 +194,6 @@ async def stop(self) -> None:
self.log = None

if status != signal.SIGTERM:
raise SystemError("Could not cleanly shutdown server subprocess")
raise SystemError(
f"Could not cleanly shutdown server subprocess; received return code {status}"
)

0 comments on commit 1431588

Please sign in to comment.