praeclarum / FuGetGallery

An alternative web UI for browsing nuget packages
https://www.fuget.org
MIT License
683 stars 121 forks source link

Only return an AggregateException if exceptions were thrown #94

Closed JeremyBarber closed 4 years ago

JeremyBarber commented 4 years ago

Currently, if there are no results for the search term, an empty AggregateException will be generated and returned.

As an example see: https://www.fuget.org/packages?q=ThisSearchTermWillProduceNoResults

I have added an extra check to ensure that an AggregateException is only returned if there are actually some exceptions that were thrown.

praeclarum commented 4 years ago

Ahhh, good catch!