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

Don't crash when giving bogus format commands #7146

Merged
merged 1 commit into from
Jul 30, 2020

Commits on Jul 29, 2020

  1. Don't crash when giving bogus format commands

    Currently if you give a bogus flag to --format it will crash
    the formatter.  With this change we will get a nice error.
    
    podman images --format '{{ bogus }}'
    Error: template: list:1: function "bogus" not defined
    
    versus
     /bin/podman.old images --format '{{ bogus }}'
    panic: template: list:1: function "bogus" not defined
    
    goroutine 1 [running]:
    
    Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
    rhatdan committed Jul 29, 2020
    Configuration menu
    Copy the full SHA
    9917fc0 View commit details
    Browse the repository at this point in the history