Skip to content

Commit dd25e29

Browse files
committed
fix: improve error message in close_session method
Changed error message from generic 'Failed to execute command' to more specific 'Failed to close session' for better debugging clarity when session closure fails.
1 parent 2327164 commit dd25e29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rock/sdk/sandbox/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ async def close_session(self, request: CloseSessionRequest) -> CloseSessionRespo
887887

888888
logging.debug(f"Close session response: {response}")
889889
if "Success" != response.get("status"):
890-
raise Exception(f"Failed to execute command: {response}")
890+
raise Exception(f"Failed to close session: {response}")
891891
result: dict = response.get("result") # type: ignore
892892
return CloseSessionResponse(**result)
893893

0 commit comments

Comments
 (0)