Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error message mentioning to use --verbose by specifying where to place it in the command line #1864

Closed
apupier opened this issue Nov 15, 2024 · 0 comments · Fixed by #1865
Labels
ideas Some idea/suggestion around jbang behavior/feature set

Comments

@apupier
Copy link
Contributor

apupier commented Nov 15, 2024

Is your feature request related to a problem? Please describe.

When a user has a connection issue or mistyped a Catalog like:

 jbang run invalid@invalid

the error message is:

[jbang] [ERROR] Unknown catalog 'invalid'
[jbang] Run with --verbose for more details

if you type:

 jbang run invalid@invalid --verbose

the output is the same.

The command to have more information is:

 jbang  --verbose run invalid@invalid

Describe the solution you'd like

In case, the --verbose must be placed before the run, I would like to have the error message mentioning it.
Not sure if it applies to all cases or not.

Describe alternatives you've considered

ideally if the message can contain the exact command to use based on the command received that could be nice. (can we hit security issues like if some passwords/token are provided? through environment variable? I guess we would have access only to the command with replaced values as I suspect the sheel environment is responsible to replace them.

Additional context

Some users were blocked because there was the unknown catalog without more messages. Using the --verbose at the right place revealed a proxy configuration issue.

@apupier apupier added the ideas Some idea/suggestion around jbang behavior/feature set label Nov 15, 2024
apupier added a commit to apupier/jbang that referenced this issue Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ideas Some idea/suggestion around jbang behavior/feature set
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant