aboutsummaryrefslogtreecommitdiff
path: root/scripts/Generate-SpdxLicenseList.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Generate-SpdxLicenseList.ps1')
-rw-r--r--scripts/Generate-SpdxLicenseList.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/Generate-SpdxLicenseList.ps1 b/scripts/Generate-SpdxLicenseList.ps1
index 4710747eb..8af5fd4de 100644
--- a/scripts/Generate-SpdxLicenseList.ps1
+++ b/scripts/Generate-SpdxLicenseList.ps1
@@ -29,7 +29,7 @@ function Transform-JsonFile {
if ($req.StatusCode -ne 200)
{
Write-Error "Failed to GET $Uri"
- return
+ throw
}
$json = $req.Content | ConvertFrom-Json -Depth 10