From d0fbd6deef951f0e79be7545b57a291114f33deb Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Thu, 17 Aug 2023 02:54:30 +0100 Subject: [PATCH] CAPIError properties renamed. code and function better describe their meaning. --- lib/errors.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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