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:
parent
d142b8a13b
commit
eb1ee3206e
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue