Actions
Fix #55536
closedcephfs-shell: print proper python error message
% Done:
0%
Source:
Tags:
Backport:
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
cephfs-shell
Labels (FS):
task(easy)
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
onecmd() is the global error catcher in cephfs-shell. Whenever a python exception occurres 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 a `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. Therefore this fix aims to make sure that a proper error message with the type of error is printed.
Updated by Venky Shankar almost 2 years ago
- Status changed from Fix Under Review to Resolved
Actions