From eb1ee3206e5aecbabdbd61e43a516806ff442577 Mon Sep 17 00:00:00 2001 From: Nicolas Pierron Date: Tue, 29 Sep 2009 13:44:07 +0000 Subject: [PATCH] Rename module: - Improve error messages. svn path=/nixos/trunk/; revision=17500 --- modules/rename.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/rename.nix b/modules/rename.nix index c7847d7c5dad..fb83f7e06b99 100644 --- a/modules/rename.nix +++ b/modules/rename.nix @@ -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 {