diff --git a/executor/oci/spec.go b/executor/oci/spec.go index 5efb3ee95580..8842f362a3ef 100644 --- a/executor/oci/spec.go +++ b/executor/oci/spec.go @@ -230,12 +230,12 @@ func (s *submounts) subMount(m mount.Mount, subPath string) (mount.Mount, error) } h, err := hashstructure.Hash(m, hashstructure.FormatV2, nil) if err != nil { - return mount.Mount{}, nil + return mount.Mount{}, err } if mr, ok := s.m[h]; ok { sm, err := sub(mr.mount, subPath) if err != nil { - return mount.Mount{}, nil + return mount.Mount{}, err } return sm, nil }