diff --git a/pkg/idtools/idtools.go b/pkg/idtools/idtools.go index 68a072db22..9c591aff83 100644 --- a/pkg/idtools/idtools.go +++ b/pkg/idtools/idtools.go @@ -140,10 +140,10 @@ func NewIDMappings(username, groupname string) (*IDMappings, error) { return nil, err } if len(subuidRanges) == 0 { - return nil, fmt.Errorf("No subuid ranges found for user %q", username) + return nil, fmt.Errorf("No subuid ranges found for user %q in %s", username, subuidFileName) } if len(subgidRanges) == 0 { - return nil, fmt.Errorf("No subgid ranges found for group %q", groupname) + return nil, fmt.Errorf("No subgid ranges found for group %q in %s", groupname, subgidFileName) } return &IDMappings{