Skip to content

Commit c1dadd8

Browse files
committed
[DynaLog] Allow logging of additional, non-DISM related exceptions for bgprocs
1 parent 8eb212d commit c1dadd8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

MainForm.vb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3638,7 +3638,7 @@ Public Class MainForm
36383638
imgPackageRelType = imgPackageRelTypeList.ToArray()
36393639
imgPackageInstTime = imgPackageInstTimeList.ToArray()
36403640
End Using
3641-
Catch ex As DismException
3641+
Catch ex As Exception
36423642
DynaLog.LogMessage("Could not get package information. Error: " & ex.Message)
36433643
ThrowAPIException(ex)
36443644
Finally
@@ -3795,7 +3795,7 @@ Public Class MainForm
37953795
imgFeatureNames = imgFeatureNameList.ToArray()
37963796
imgFeatureState = imgFeatureStateList.ToArray()
37973797
End Using
3798-
Catch ex As DismException
3798+
Catch ex As Exception
37993799
DynaLog.LogMessage("Could not get package information. Error: " & ex.Message)
38003800
ThrowAPIException(ex)
38013801
Finally
@@ -3978,7 +3978,7 @@ Public Class MainForm
39783978
imgAppxResourceIds = imgAppxResourceIdList.ToArray()
39793979
imgAppxVersions = imgAppxVersionList.ToArray()
39803980
End Using
3981-
Catch ex As DismException
3981+
Catch ex As Exception
39823982
DynaLog.LogMessage("Could not get package information. Error: " & ex.Message)
39833983
ThrowAPIException(ex)
39843984
Finally
@@ -4214,7 +4214,7 @@ Public Class MainForm
42144214
imgCapabilityIds = imgCapabilityNameList.ToArray()
42154215
imgCapabilityState = imgCapabilityStateList.ToArray()
42164216
End Using
4217-
Catch ex As DismException
4217+
Catch ex As Exception
42184218
DynaLog.LogMessage("Could not get capability information. Error: " & ex.Message)
42194219
ThrowAPIException(ex)
42204220
Finally
@@ -4394,7 +4394,7 @@ Public Class MainForm
43944394
imgDrvVersions = imgDrvVersionList.ToArray()
43954395
imgDrvBootCriticalStatus = imgDrvBootCriticalStatusList.ToArray()
43964396
End Using
4397-
Catch ex As DismException
4397+
Catch ex As Exception
43984398
DynaLog.LogMessage("Could not get package information. Error: " & ex.Message)
43994399
ThrowAPIException(ex)
44004400
Finally

0 commit comments

Comments
 (0)