chocolatey / chocolatey/choco

Error when source name is not found instead of "0 packages found"

Open
#1,168 0 comments 0 reactions 0 assignees View on GitHub
0 - Backlog Bug Priority - Low
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

~~~sh
> choco search -s non_existent_source
Chocolatey v0.10.3
0 packages found.
~~~

Should error instead, similar to how it errors when you try to reach a source by url.

It should look something like this:
`Invalid URI: The hostname could not be parsed.`

Contributor guide

Open the contributing guide

Research direction

Reproduce `choco search -s non_existent_source` and compare its source-name handling with the existing URL-source error path. Done means an invalid source name reports an error such as `Invalid URI: The hostname could not be parsed.` instead of `0 packages found.`

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.