1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 08:31:59 +00:00

Rename module:

- Improve error messages.

svn path=/nixos/trunk/; revision=17500
This commit is contained in:
Nicolas Pierron 2009-09-29 13:44:07 +00:00
parent d142b8a13b
commit eb1ee3206e

View file

@ -15,8 +15,10 @@ let
let
setTo = setAttrByPath (splitString "." to);
setFrom = setAttrByPath (splitString "." from);
toOf = attrByPath (splitString "." to) (abort "bad renaming");
fromOf = attrByPath (splitString "." from) (abort "IE: renaming error");
toOf = attrByPath (splitString "." to)
(abort "Renaming Error: option '${to}' does not exists.");
fromOf = attrByPath (splitString "." from)
(abort "Internal Error: option '${from}' should be declared.");
in
[{
options = setFrom (mkOption {