summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpod/sql_state_internal.go1
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")
}