From 1a117dd047330a8b2309877b8a972aed188f25c9 Mon Sep 17 00:00:00 2001 From: FlorianSf Date: Tue, 16 Jul 2024 14:08:29 +0200 Subject: [PATCH] fixing exception in the campaign load for #13 --- .../plugins/InxmailPro/Public/PeopleStage/get-messages.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AptecoPSFramework/plugins/InxmailPro/Public/PeopleStage/get-messages.ps1 b/AptecoPSFramework/plugins/InxmailPro/Public/PeopleStage/get-messages.ps1 index c9e7859..73c6fa9 100644 --- a/AptecoPSFramework/plugins/InxmailPro/Public/PeopleStage/get-messages.ps1 +++ b/AptecoPSFramework/plugins/InxmailPro/Public/PeopleStage/get-messages.ps1 @@ -26,6 +26,7 @@ function Get-Messages { write-log "Parameterset: $( $PSCmdlet.ParameterSetName )" + #----------------------------------------------- # CHECK INPUT AND SET JOBLOG #----------------------------------------------- @@ -151,7 +152,7 @@ function Get-Messages { $msg = "No messages loaded -> please check!" Write-Log -Message $msg -Severity ERROR - throw [System.IO.InvalidDataException] $msg + throw $msg }