aboutsummaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-11-16 05:02:03 -0800
committerGitHub <noreply@github.com>2018-11-16 05:02:03 -0800
commit39ef6d43d0b5a614228898180025835836673a8c (patch)
tree3501ed854691f101996d67ea7bfd16cf37c2e709 /pkg
parent53c47b9061bcee28c1777c331ab6ede2a7e0dc37 (diff)
parente93834576036ef0a5e1d5867e522d1d90a63d358 (diff)
downloadpodman-39ef6d43d0b5a614228898180025835836673a8c.tar.gz
podman-39ef6d43d0b5a614228898180025835836673a8c.tar.bz2
podman-39ef6d43d0b5a614228898180025835836673a8c.zip
Merge pull request #1756 from isimluk/update-dependent-metalinter
Update metalinter dependency
Diffstat (limited to 'pkg')
-rw-r--r--pkg/varlinkapi/images.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/varlinkapi/images.go b/pkg/varlinkapi/images.go
index d14c61c39..42e285b53 100644
--- a/pkg/varlinkapi/images.go
+++ b/pkg/varlinkapi/images.go
@@ -271,6 +271,9 @@ func (i *LibpodAPI) InspectImage(call iopodman.VarlinkCall, name string) error {
return call.ReplyImageNotFound(name)
}
inspectInfo, err := newImage.Inspect(getContext())
+ if err != nil {
+ return call.ReplyErrorOccurred(err.Error())
+ }
b, err := json.Marshal(inspectInfo)
if err != nil {
return call.ReplyErrorOccurred(fmt.Sprintf("unable to serialize"))