diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-02-11 12:15:12 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-02-12 14:28:07 +0000 |
commit | 3d0100bb44834d079ad0e2c7b9c264a3c5ec131e (patch) | |
tree | b3ab856c0ed7d28a703cf92dd72717ad9d8d63e4 /libpod | |
parent | de737c150a00d54b44f4caabc01ec11c26488230 (diff) | |
download | podman-3d0100bb44834d079ad0e2c7b9c264a3c5ec131e.tar.gz podman-3d0100bb44834d079ad0e2c7b9c264a3c5ec131e.tar.bz2 podman-3d0100bb44834d079ad0e2c7b9c264a3c5ec131e.zip |
Address review commentv0.2
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes: #184
Approved by: baude
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/sql_state_internal.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/sql_state_internal.go b/libpod/sql_state_internal.go index 0bbdccc9f..3881305be 100644 --- a/libpod/sql_state_internal.go +++ b/libpod/sql_state_internal.go @@ -843,6 +843,7 @@ func (s *SQLState) addContainer(ctr *Container, pod *Pod) (err error) { if err == sql.ErrNoRows { return errors.Wrapf(ErrInvalidArg, "container %s depends on container %s but it is not in pod %s", ctr.ID(), depID, pod.ID()) } + return errors.Wrapf(err, "error querying for existence of container %s", depID) } else if check != 1 { return errors.Wrapf(ErrInternal, "check digit for checkCtrInPod query incorrect") } |