mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +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
|
let
|
||||||
setTo = setAttrByPath (splitString "." to);
|
setTo = setAttrByPath (splitString "." to);
|
||||||
setFrom = setAttrByPath (splitString "." from);
|
setFrom = setAttrByPath (splitString "." from);
|
||||||
toOf = attrByPath (splitString "." to) (abort "bad renaming");
|
toOf = attrByPath (splitString "." to)
|
||||||
fromOf = attrByPath (splitString "." from) (abort "IE: renaming error");
|
(abort "Renaming Error: option '${to}' does not exists.");
|
||||||
|
fromOf = attrByPath (splitString "." from)
|
||||||
|
(abort "Internal Error: option '${from}' should be declared.");
|
||||||
in
|
in
|
||||||
[{
|
[{
|
||||||
options = setFrom (mkOption {
|
options = setFrom (mkOption {
|
||||||
|
Loading…
Reference in New Issue
Block a user