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 gather error message when output JSON is missing "data" entry #1002

Open
atravitz opened this issue Nov 5, 2024 · 0 comments
Open
Labels
cli command-line interface

Comments

@atravitz
Copy link
Contributor

atravitz commented Nov 5, 2024

If job fails and so the resulting JSON's ['protocol_result']['data'] is an empty dict, gather then fails with an indexing error, which does not make it clear that the script is failing due to an incomplete run.

We should either have better error handling, or return "unknown" (in the case that a user would want a raw output).

@atravitz atravitz added the cli command-line interface label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli command-line interface
Projects
None yet
Development

No branches or pull requests

1 participant