Bug 2053 fixed: raising JujuControllerFailedConnecting with error message 42/12142/1
authorPedro Escaleira <escaleira@av.it.pt>
Mon, 30 May 2022 18:08:41 +0000 (19:08 +0100)
committerPedro Escaleira <escaleira@av.it.pt>
Mon, 30 May 2022 18:08:41 +0000 (19:08 +0100)
Change-Id: Ie4f3fa92ffd7e7263733d2364ed794a2262f00a4
Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
n2vc/libjuju.py

index 14e8467..9d9d08e 100644 (file)
@@ -122,7 +122,10 @@ class Libjuju:
             )
             if controller:
                 await self.disconnect_controller(controller)
-            raise JujuControllerFailedConnecting(e)
+
+            raise JujuControllerFailedConnecting(
+                f"Error connecting to Juju controller: {e}"
+            )
 
     async def disconnect(self):
         """Disconnect"""