From 7b8b23b39b3cbb8518b25d3ba8fe12129f9380ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 27 May 2025 11:58:45 +0200 Subject: [PATCH] ssh/remote: Improve error message if _control_path_dir is not set --- pkgs/clan-cli/clan_lib/ssh/remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/clan-cli/clan_lib/ssh/remote.py b/pkgs/clan-cli/clan_lib/ssh/remote.py index 206b74631..51d8dcd93 100644 --- a/pkgs/clan-cli/clan_lib/ssh/remote.py +++ b/pkgs/clan-cli/clan_lib/ssh/remote.py @@ -275,7 +275,7 @@ class Remote: if self._control_path_dir is None and not control_master: effective_control_path_dir = None elif self._control_path_dir is None and control_master: - msg = "Control path directory is not set. Please with Remote.ssh_control_master() as ctx to set it." + msg = "Bug! Control path directory is not set. Please use Remote.ssh_control_master() or set control_master to false." raise ClanError(msg) ssh_opts = ["-A"] if self.forward_agent else []