diff --git a/tripleoclient/plugin.py b/tripleoclient/plugin.py index 5f92c6976..bd4e3e415 100644 --- a/tripleoclient/plugin.py +++ b/tripleoclient/plugin.py @@ -158,6 +158,13 @@ class WebsocketClient(object): raise exceptions.WebSocketTimeout() except websocket.WebSocketConnectionClosedException: raise exceptions.WebSocketConnectionClosed() + except Exception as e: + err = ("An exception occurred while waiting for messages. " + "This can indicate a timeout or a failure in the " + "workflow execution. To troubleshoot, check the " + "workflow executions for failures and/or the " + "ansible logs. Exception: {0!r}".format(e)) + raise exceptions.WorkflowServiceError(err) def __enter__(self): """Return self to allow usage as a context manager"""