corgibytes / freshli-lib

A tool for collecting historical metrics about a project's dependencies
MIT License
17 stars 1 forks source link

Throw exception when metaCPAN search response is error #579

Open steverichey opened 2 years ago

steverichey commented 2 years ago

This line returns null when the package search fails. However, this causes other unexpected errors, such as ArgumentNullException when called by Latest(...), which is a public-facing method.

This is mainly an issue when using a newer version of Elasticsearch.Net, which is unlikely to happen on accident, but it surfaces a need for a better user-facing error in this case.