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

Output error on empty resultset #305

Open
aiven-amartin opened this issue Sep 19, 2022 · 1 comment
Open

Output error on empty resultset #305

aiven-amartin opened this issue Sep 19, 2022 · 1 comment

Comments

@aiven-amartin
Copy link

What happened?

If the pretty module is called with headers, but without any results having a value for a given header, it errors out as no width is calculated (see

).

What did you expect to happen?

Column printed with just the width of the header value.

What else do we need to know?

Include your platform, version, and any other information that seems relevant.

@fingon
Copy link
Contributor

fingon commented Sep 19, 2022

The problem with this is that if there is e.g. typo, it is silently ignored and dummy empty field stays around as long as it does. Failing with correct error message would be perhaps better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants