From 44ed5767ea00bcab0782379d4c803b080beaf47d Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Tue, 25 Jun 2019 08:30:54 -0400 Subject: [PATCH] Update Expired Token Error Message --- ZertoApiWrapper/Private/Invoke-ZARestRequest.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ZertoApiWrapper/Private/Invoke-ZARestRequest.ps1 b/ZertoApiWrapper/Private/Invoke-ZARestRequest.ps1 index 70e8951..8581a2f 100644 --- a/ZertoApiWrapper/Private/Invoke-ZARestRequest.ps1 +++ b/ZertoApiWrapper/Private/Invoke-ZARestRequest.ps1 @@ -12,7 +12,7 @@ function Invoke-ZARestRequest { Write-Error -Message "Zerto Analytics Connection does not Exist. Please run Connect-ZertoAnalytics first to establish a connection" break } elseif ( (Test-Path variable:script:zaHeaders) -and $([datetime]$script:zaLastAction).addMinutes(60) -lt $(get-date) ) { - Write-Error -Message "Authorization Token has Expired. Please re-authorize to the Zerto Virtual Manager" + Write-Error -Message "Authorization Token has Expired. Please re-authorize to the Zerto Analytics Portal" break } else { # Update the last action time and submit the request based on PS Version.