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

cephfs-shell: make onecmd() print proper error msg #46110

Merged
merged 1 commit into from May 10, 2022

Commits on May 9, 2022

  1. cephfs-shell: make onecmd() print proper error msg

    Rationale: Whenever a python exception occurred in cephfs-shell,
               it would often only be the exception message but doesn't
               say anything about the type of exception. For example if
               `ZeroDivisionError: division by zero` occurred, the onecmd()
               would print `division by zero` but will omit the type of
               exception. In this case it's easy to understand but let's
               say an `KeyError` exception occurred for a key `9999` which
               is not existent in the dictionary, onecmd() would print
               just `9999` in this scenario and it would be very difficult
               to interpret what type of error it is.
    
    Fixes: https://tracker.ceph.com/issues/55536
    
    Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
    dparmar18 committed May 9, 2022
    Configuration menu
    Copy the full SHA
    c5f3c51 View commit details
    Browse the repository at this point in the history