3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #2782 from soenkehahn/better_error_message_missing_uid

better error message in case of missing uids
This commit is contained in:
Peter Simons 2014-05-28 20:59:43 +02:00
commit 642449da18

View file

@ -509,7 +509,7 @@ in {
message = "uids and gids must be unique!"; message = "uids and gids must be unique!";
} }
{ assertion = cfg.mutableUsers || (nonUidUsers == {}); { assertion = cfg.mutableUsers || (nonUidUsers == {});
message = "When mutableUsers is false, no uid can be null"; message = "When mutableUsers is false, no uid can be null: ${toString (attrNames nonUidUsers)}";
} }
{ assertion = cfg.mutableUsers || (nonGidGroups == {}); { assertion = cfg.mutableUsers || (nonGidGroups == {});
message = "When mutableUsers is false, no gid can be null"; message = "When mutableUsers is false, no gid can be null";