Cli: improve targetHost error message
This commit is contained in:
@@ -102,8 +102,11 @@ class Machine:
|
|||||||
or self.deployment.get("deploymentAddress")
|
or self.deployment.get("deploymentAddress")
|
||||||
)
|
)
|
||||||
if val is None:
|
if val is None:
|
||||||
msg = f"the 'clan.core.networking.targetHost' nixos option is not set for machine '{self.name}'"
|
msg = f"'TargetHost' is not set for machine '{self.name}'"
|
||||||
raise ClanError(msg)
|
raise ClanError(
|
||||||
|
msg,
|
||||||
|
description="See https://docs.clan.lol/getting-started/deploy/#setting-the-target-host for more information.",
|
||||||
|
)
|
||||||
return val
|
return val
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user