build(wix): fix test-msi exception handling

This commit is contained in:
Oleg Shparber
2026-04-11 18:39:36 +03:00
parent a400ceab0d
commit 1c50464e1b
+4 -2
View File
@@ -136,7 +136,8 @@ try {
$errors += "file count"
}
} catch {
Write-Output " FAIL File table query failed ($($_.Exception.InnerException.Message))"
$msg = if ($_.Exception.InnerException) { $_.Exception.InnerException.Message } else { $_.Exception.Message }
Write-Output " FAIL File table query failed ($msg)"
$errors += "File table"
}
@@ -174,7 +175,8 @@ foreach ($scheme in @("dash", "dash-plugin")) {
$errors += "$scheme handler"
}
} catch {
Write-Output " FAIL $scheme protocol handler: Registry table query failed ($($_.Exception.InnerException.Message))"
$msg = if ($_.Exception.InnerException) { $_.Exception.InnerException.Message } else { $_.Exception.Message }
Write-Output " FAIL $scheme protocol handler: Registry table query failed ($msg)"
$errors += "$scheme handler"
}
}