meshery: [mesheryctl] Improve `pattern list` Error Message

Current Behavior

The mesheryctl pattern list error response currently displays as ;

➜  meshery git:(master) ✗ mesheryctl pattern list
Error: Get "http://localhost:9081/api/pattern": dial tcp [::1]:9081: connect: connection refused
➜  meshery git:(master) ✗

Expected Behavior

The mesheryctl pattern list error response should be “Unable to reach Meshery Server at …… Please confirm that Meshery Server is available.”

Environment

  • Host OS: Mac Linux Windows
  • Platform: Docker or Kubernetes
  • Meshery Server Version: stable-v
  • Meshery Client Version: stable-v

Contributor Guides and Handbook

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (10 by maintainers)

Most upvoted comments

@ayushthe1, yes, that’s pretty close, however:

  1. The port # should not be hardcoded, but taken from mesheryctl’s central config/struct.
  2. Always capitalize Meshery.
  3. Not system start, but system status is how you verify if Meshery is running.
  4. Don’t say “Please”, even though it is polite, it’s inappropriate tone.
  5. First suggest system check, which is what I was telling you previously, not system start