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

fix: more informative error #1778

Merged
merged 1 commit into from Apr 21, 2022
Merged

fix: more informative error #1778

merged 1 commit into from Apr 21, 2022

Commits on Apr 21, 2022

  1. fix: more informative error

    When running the attach attestation command with empty file input the cli returns hard to understand output like:
    
    ```
    file name too long
    Using payload from: filename.json
    Error: unexpected end of JSON input
    main.go:46: error during command execution: unexpected end of JSON input
    ```
    
    By some investigation I found out that attestation file was empty, yes this is a user-error, so I recon it could be more informative as it throws the error while parsing the input making the real error a bit shaded.
    
    Signed-off-by: ybelMekk <youssef.bel.mekki@nav.no>
    ybelMekk committed Apr 21, 2022
    Configuration menu
    Copy the full SHA
    56e381b View commit details
    Browse the repository at this point in the history