diff --git a/lib/errors.ps1 b/lib/errors.ps1 index f2e33dc..5cb7106 100644 --- a/lib/errors.ps1 +++ b/lib/errors.ps1 @@ -9,11 +9,11 @@ class LoginError : VMRemoteError { } class CAPIError : VMRemoteError { - [int]$retval - [string]$caller + [int]$code + [string]$function - CAPIError ([int]$retval, [string]$caller) : base ("$caller returned $retval") { - $this.retval = $retval - $this.caller = $caller + CAPIError ([int]$code, [string]$function) : base ("$function returned $code") { + $this.code = $code + $this.function = $function } } \ No newline at end of file