Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Commit

Permalink
fixed error type in New-VSError
Browse files Browse the repository at this point in the history
  • Loading branch information
scrthq committed Sep 12, 2017
1 parent 74be094 commit 19dbb1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Vaporshell/Private/New-VSError.ps1
Expand Up @@ -10,7 +10,7 @@ function New-VSError {
Result { $Exception = "$($result.Exception.InnerException.Message)" }
String { $Exception = "$String" }
}
$e = New-Object "Amazon.Runtime.AmazonClientException" $Exception
$e = New-Object "System.Exception" $Exception
$errorRecord = New-Object 'System.Management.Automation.ErrorRecord' $e, $null, ([System.Management.Automation.ErrorCategory]::InvalidOperation), $null
return $errorRecord
}

0 comments on commit 19dbb1e

Please sign in to comment.