Update Expired Token Error Message

This commit is contained in:
Wes Carroll
2019-06-25 08:30:54 -04:00
parent 83649fb72a
commit 44ed5767ea
@@ -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" Write-Error -Message "Zerto Analytics Connection does not Exist. Please run Connect-ZertoAnalytics first to establish a connection"
break break
} elseif ( (Test-Path variable:script:zaHeaders) -and $([datetime]$script:zaLastAction).addMinutes(60) -lt $(get-date) ) { } 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 break
} else { } else {
# Update the last action time and submit the request based on PS Version. # Update the last action time and submit the request based on PS Version.