Merge pull request #205 from rhatdan/subuid
Add more information in errors about missing uidimappings or gidmappings
This commit is contained in:
commit
17c7d1fee5
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Reference in New Issue