Skip to content

Commit fe34272

Browse files
committed
Chore: Fix SetError statements
1 parent 62876cf commit fe34272

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

wd_core.au3

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ Func _WD_Action($sSession, $sCommand, $sOption = Default)
667667
$iErr = @error
668668

669669
Case Else
670-
Return SetError(__WD_Error($sFuncName, $_WD_ERROR_InvalidDataType, "(Back|Forward|Refresh|Url|Title|Actions) $sCommand=>" & $sCommand), "")
670+
Return SetError(__WD_Error($sFuncName, $_WD_ERROR_InvalidDataType, "(Back|Forward|Refresh|Url|Title|Actions) $sCommand=>" & $sCommand), 0, "")
671671

672672
EndSwitch
673673

@@ -1228,7 +1228,7 @@ Func _WD_Cookies($sSession, $sCommand, $sOption = Default)
12281228
$iErr = @error
12291229

12301230
Case Else
1231-
Return SetError(__WD_Error($sFuncName, $_WD_ERROR_InvalidDataType, "(GetAll|Get|Add|Delete) $sCommand=>" & $sCommand), "")
1231+
Return SetError(__WD_Error($sFuncName, $_WD_ERROR_InvalidDataType, "(GetAll|Get|Add|Delete) $sCommand=>" & $sCommand), 0, "")
12321232
EndSwitch
12331233

12341234
__WD_DetectError($iErr, $sResponse)

wd_helper.au3

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ Local $sText, $aOptions
925925
$vResult = $aOut
926926
EndIf
927927
Case Else
928-
Return SetError(__WD_Error($sFuncName, $_WD_ERROR_InvalidDataType, "(Value|Options) $sCommand=>" & $sCommand), "")
928+
Return SetError(__WD_Error($sFuncName, $_WD_ERROR_InvalidDataType, "(Value|Options) $sCommand=>" & $sCommand), 0, "")
929929

930930
EndSwitch
931931
Else

0 commit comments

Comments
 (0)