Improves message on invalid template or host key

Fixes #53
This commit is contained in:
Christian Stein 2020-03-11 17:53:59 +01:00
parent a040873e31
commit c2697adf2f

View file

@ -10,7 +10,7 @@ function Get-IcingaDirectorSelfServiceConfig()
} }
if ([string]::IsNullOrEmpty($ApiKey)) { if ([string]::IsNullOrEmpty($ApiKey)) {
throw 'Please enter either a template or your host key'; throw 'Please enter either a template or your host key. If this message persists, ensure your host is not having a template key assigned already. If so, you can try dropping it within the Icinga Director.';
} }
$ProgressPreference = "SilentlyContinue"; $ProgressPreference = "SilentlyContinue";