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 {