Skip to content

Commit

Permalink
Improve semver parsing error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mkht committed Nov 30, 2019
1 parent f906335 commit b1ab5e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/getModule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ function getModuleFromPSGallery {
$SemVerRange = [pspm.SemVerRange]::new($Version) #throw exception on parse error
}
catch {
throw
Write-Error -Exception $_.Exception
return
}
}
Expand Down

0 comments on commit b1ab5e0

Please sign in to comment.