summaryrefslogtreecommitdiff
path: root/libpod/runtime_img.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-07-29 14:10:59 -0400
committerMatthew Heon <matthew.heon@pm.me>2020-07-31 11:42:40 -0400
commit9b1a7894a1aa3097c7f7901e9087f04ca04788e1 (patch)
tree0e55dbeecc74c38a8eb4636f418bfe51c899f259 /libpod/runtime_img.go
parentda752a7ed32f90a3f187eeb5f3f372889561a021 (diff)
downloadpodman-9b1a7894a1aa3097c7f7901e9087f04ca04788e1.tar.gz
podman-9b1a7894a1aa3097c7f7901e9087f04ca04788e1.tar.bz2
podman-9b1a7894a1aa3097c7f7901e9087f04ca04788e1.zip
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> <MH: Fixed compile after cherry pick> Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod/runtime_img.go')
0 files changed, 0 insertions, 0 deletions