Branch: refs/heads/types-path-better-error
Home: https://github.com/NixOS/nixpkgs
Commit: 691f683c8c3e5423bfe39e3c12f5a325130ec014
https://github.com/NixOS/nixpkgs/commit/691f683c8c3e5423bfe39e3c12f5a325130ec014
Author: Benno Fünfstück <[email protected]>
Date: 2015-08-15 (Sat, 15 Aug 2015)
Changed paths:
M lib/types.nix
M nixos/modules/config/system-path.nix
Log Message:
-----------
types.nix: better error message for non-paths
This improves error messages when a set or a list is used where a path
was expected. For an example, if you used a package set (as opposed to a
single package) in systemPackages before this commit, the error was:
```
cannot coerce a list to a string, at "/home/nixpkgs/lib/types.nix":103:37
```
Now, the error message reads:
```
The option value `environment.systemPackages' in `/etc/nixos/configuration.nix'
is not a list of paths.
```
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits