Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

during check Differeniate between a resources not existing, being locked, or being in maintaince mode #20

Open
pgagne opened this issue Aug 7, 2022 · 0 comments

Comments

@pgagne
Copy link

pgagne commented Aug 7, 2022

Right now rlock --check does not seam to differeanite in its message or exit code between.

  1. A resource name or label not being found
  2. a resource that does exist but is in maintaince mode
  3. a resource that is locked

all three cases print this message:

{'CONNECTION': 'OK'}
No resource available.

This is quite confusing, especially when your using it a lot when you give it a mistyped label.

Different error messages for these three cases, should be printed, perhaps with there own exit codes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant