diff --git a/.github/scripts/prepare-native-http3.ps1 b/.github/scripts/prepare-native-http3.ps1 index 8c79da8d6b..530ca38ce3 100644 --- a/.github/scripts/prepare-native-http3.ps1 +++ b/.github/scripts/prepare-native-http3.ps1 @@ -101,8 +101,9 @@ foreach ($file in $pins.windows.native_files) { default { throw "Unknown native-tool input base '$($file.base)'." } } $path = Join-Path $base $file.path - if ((Get-FileHash -LiteralPath $path -Algorithm SHA256).Hash -ne $file.sha256) { - throw "The accepted MSVC/SDK input differs at '$($file.path)'." + $actualHash = (Get-FileHash -LiteralPath $path -Algorithm SHA256).Hash + if ($actualHash -ne $file.sha256) { + throw "The accepted MSVC/SDK input differs at '$($file.path)' (expected '$($file.sha256)', found '$actualHash')." } }