summaryrefslogtreecommitdiff
path: root/kvmd/apps/vnc/rfb/errors.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-07-17 09:25:23 +0300
committerMaxim Devaev <[email protected]>2022-07-17 09:25:23 +0300
commit4661695f867c9f91ba6dd3dae2c96779759db903 (patch)
tree2b14f3150c10ba38860c9111f2a6e56f3c81b4b9 /kvmd/apps/vnc/rfb/errors.py
parent398b0ad76298552e62fa598dc0e84a22374ecb29 (diff)
more vnc debug
Diffstat (limited to 'kvmd/apps/vnc/rfb/errors.py')
-rw-r--r--kvmd/apps/vnc/rfb/errors.py8
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)}")