openfga / cli

A cross-platform CLI to interact with an OpenFGA server
https://openfga.dev
Apache License 2.0
50 stars 26 forks source link

simplify err messages in check function #405

Closed Siddhant-K-code closed 1 month ago

Siddhant-K-code commented 1 month ago

Description

This pull request updates the error messages in the check function to provide more informative and concise error messages. The "failed to check" error message has been changed to "check failed" to better reflect the actual error.

Updated error message would look like:

Error: check failed:

Actual Example:

Error: check failed: Post "http://localhost:8080/stores/01H4P8Z95KTXXEP6Z03T75Q984/check": dial tcp [::1]:8080: connect: connection refused

References

fixes #404

Review Checklist

If you haven't done so yet, we would appreciate it if you could star the OpenFGA repository. :)