Skip to content

Conversation

@ktock
Copy link
Collaborator

@ktock ktock commented May 8, 2023

following-up #1760

This PR fixes monitor to print more understandable messages on errors:

  • When ps fails because the monitor doesn't attach to any session, print no attaching session instead of unknown ref "".
  • Avoid disconnect silently failing when the monitor doesn't attach to any session. Print no attaching session error instead.
  • Fix error message of attach's arguments. (server name must be passed -> ID of session or process must be passed)

Print more understandable messages on error:

- When ps fails because the monitor doesn't attach to any session, print "no
  attaching session" instead of "unknown ref".
- Avoid disconnect silently fails when the monitor doesn't attach to any
  session. Print "no attaching session" error instead.
- Fix error message of "attach"'s arguments. ("server name must be passed" ->
  "ID of session or process must be passed")

Signed-off-by: Kohei Tokunaga <[email protected]>
@jedevc jedevc merged commit c9c1303 into docker:master May 9, 2023
@ktock ktock deleted the fixerrormsg branch May 9, 2023 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants