Skip to content

Commit b54a1b6

Browse files
authored
Update NetWebView2Lib.au3
1 parent fb3e7aa commit b54a1b6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

NetWebView2Lib.au3

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,12 +338,12 @@ Func _NetWebView2_ExportPageData(ByRef $oWebV2M, $iFormat, $sFilePath = '')
338338
#TODO https://github.com/ioa747/NetWebView2Lib/issues/15
339339
#TODO https://github.com/ioa747/NetWebView2Lib/pull/16
340340

341-
Local Const $s_Prefix = "[_NetWebView2_ExportPageData]:" & " Format:" & $iFormat & " FilePath:" & $sFilePath
341+
Local Const $s_Prefix = "[_NetWebView2_ExportPageData]:" & " Format:" & $iFormat & " FilePath:" & (($sFilePath) ? ($sFilePath) : ('"EMPTY"'))
342342
Local $oMyError = ObjEvent("AutoIt.Error", __NetWebView2_COMErrFunc) ; Local COM Error Handler
343343
#forceref $oMyError
344344

345345
Local $s_Result = $oWebV2M.ExportPageData($iFormat, $sFilePath)
346-
If StringInStr($s_Result, 'ERROR:') Then SetError(1)
346+
If StringLeft($s_Result, 6) = 'ERROR:' Then SetError(1)
347347
__NetWebView2_Log(@ScriptLineNumber, $s_Prefix & " RESULT:" & ((@error) ? ($s_Result) : ("SUCCESS")), 1)
348348
Return SetError(@error, @extended, $s_Result)
349349
EndFunc ;==>_NetWebView2_ExportPageData

0 commit comments

Comments
 (0)