diff --git a/executor/oci/spec.go b/executor/oci/spec.go index 7028b4e18f13..0024eb609d9a 100644 --- a/executor/oci/spec.go +++ b/executor/oci/spec.go @@ -233,12 +233,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 }