From c2697adf2fec68559892a5db29b121e188c195c3 Mon Sep 17 00:00:00 2001 From: Christian Stein Date: Wed, 11 Mar 2020 17:53:59 +0100 Subject: [PATCH] Improves message on invalid template or host key Fixes #53 --- lib/apis/Get-IcingaDirectorSelfServiceConfig.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/apis/Get-IcingaDirectorSelfServiceConfig.psm1 b/lib/apis/Get-IcingaDirectorSelfServiceConfig.psm1 index 59d57bc..f934f26 100644 --- a/lib/apis/Get-IcingaDirectorSelfServiceConfig.psm1 +++ b/lib/apis/Get-IcingaDirectorSelfServiceConfig.psm1 @@ -10,7 +10,7 @@ function Get-IcingaDirectorSelfServiceConfig() } 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";