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 reporting user experience #763

Open
DavidSouther opened this issue Jan 17, 2024 · 1 comment
Open

Improve error reporting user experience #763

DavidSouther opened this issue Jan 17, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@DavidSouther
Copy link

What is the problem you're trying to solve?.

This error message is IMHO brusque and jarring:

% finch build -t rustv1
FATA[0000] context needs to be specified                
FATA[0000] exit status 1 

Compared to

% docker build -t rustv1
ERROR: "docker buildx build" requires exactly 1 argument.
See 'docker buildx build --help'.

Usage:  docker buildx build [OPTIONS] PATH | URL | -

Start a build

Describe the feature you'd like

While both contain the same specific issue, the "FATA[0000]" prefix feels very in-my-face for a minor typo? On the other hand, Docker's is probably too verbose? I know how to invoke --help. The Usage: line, though, is IMHO the nicety of their error output.

So I'd be interested in a general "Make the CLI output friendly" for the common operations (build, run, exec, etc).

@pendo324 pendo324 added enhancement New feature or request good first issue Good for newcomers labels Jan 17, 2024
@AkihiroSuda
Copy link

AkihiroSuda commented Feb 1, 2024

the "FATA[0000]" prefix feels very in-my-face for a minor typo?

No

https://pkg.go.dev/github.com/sirupsen/logrus#readme-formatters

When colors are enabled, levels are truncated to 4 characters by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants