From f9eaf3e8ec166692b0864e389c7d387043bf4abc Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Wed, 27 Nov 2024 09:57:47 +0100 Subject: [PATCH] Cli: improve targetHost error message --- pkgs/clan-cli/clan_cli/machines/machines.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/clan-cli/clan_cli/machines/machines.py b/pkgs/clan-cli/clan_cli/machines/machines.py index ff06ebf1f..367ad405e 100644 --- a/pkgs/clan-cli/clan_cli/machines/machines.py +++ b/pkgs/clan-cli/clan_cli/machines/machines.py @@ -102,8 +102,11 @@ class Machine: or self.deployment.get("deploymentAddress") ) if val is None: - msg = f"the 'clan.core.networking.targetHost' nixos option is not set for machine '{self.name}'" - raise ClanError(msg) + msg = f"'TargetHost' is not set for machine '{self.name}'" + raise ClanError( + msg, + description="See https://docs.clan.lol/getting-started/deploy/#setting-the-target-host for more information.", + ) return val @property