From 9fb1665e1264d139ae8aa9b7db1b3f3329d6683a Mon Sep 17 00:00:00 2001 From: Pedro Escaleira Date: Mon, 30 May 2022 19:08:41 +0100 Subject: [PATCH] Bug 2055 fixed: raising JujuControllerFailedConnecting with error message Change-Id: Ie4f3fa92ffd7e7263733d2364ed794a2262f00a4 Signed-off-by: Pedro Escaleira --- n2vc/libjuju.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/n2vc/libjuju.py b/n2vc/libjuju.py index a5b4d7e..7b01d5d 100644 --- a/n2vc/libjuju.py +++ b/n2vc/libjuju.py @@ -121,7 +121,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""" -- 2.25.1