diff options
author | Maxim Devaev <[email protected]> | 2022-07-17 09:25:23 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-07-17 09:25:23 +0300 |
commit | 4661695f867c9f91ba6dd3dae2c96779759db903 (patch) | |
tree | 2b14f3150c10ba38860c9111f2a6e56f3c81b4b9 /kvmd/apps/vnc/rfb/errors.py | |
parent | 398b0ad76298552e62fa598dc0e84a22374ecb29 (diff) |
more vnc debug
Diffstat (limited to 'kvmd/apps/vnc/rfb/errors.py')
-rw-r--r-- | kvmd/apps/vnc/rfb/errors.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kvmd/apps/vnc/rfb/errors.py b/kvmd/apps/vnc/rfb/errors.py index a5bb17e3..1cf68818 100644 --- a/kvmd/apps/vnc/rfb/errors.py +++ b/kvmd/apps/vnc/rfb/errors.py @@ -20,10 +20,14 @@ # ========================================================================== # +from .... import tools + + +# ===== class RfbError(Exception): pass class RfbConnectionError(RfbError): - def __init__(self, err: Exception) -> None: - super().__init__(type(err).__name__) + def __init__(self, msg: str, err: Exception) -> None: + super().__init__(f"{msg}: {tools.efmt(err)}") |