mirror of
https://github.com/zealdocs/zeal.git
synced 2026-08-29 08:34:50 +08:00
build(wix): fix test-msi exception handling
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user