Skip to content

Commit

Permalink
Merge pull request #205 from rhatdan/subuid
Browse files Browse the repository at this point in the history
Add more information in errors about missing uidimappings or gidmappings
  • Loading branch information
rhatdan authored Jul 30, 2018
2 parents 956a197 + ad12a70 commit 17c7d1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/idtools/idtools.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 17c7d1f

Please sign in to comment.