lib.getAttrFromPath: Don't use errorMessage variable
We can just pass the error message on without creating an environment.
This commit is contained in:
parent
31f91738fb
commit
948e5b841d
1 changed files with 1 additions and 2 deletions
|
@ -216,8 +216,7 @@ rec {
|
|||
attrPath:
|
||||
# The nested attribute set to find the value in.
|
||||
set:
|
||||
let errorMsg = "cannot find attribute `" + concatStringsSep "." attrPath + "'";
|
||||
in attrByPath attrPath (abort errorMsg) set;
|
||||
attrByPath attrPath (abort ("cannot find attribute `" + concatStringsSep "." attrPath + "'")) set;
|
||||
|
||||
/* Map each attribute in the given set and merge them into a new attribute set.
|
||||
|
||||
|
|
Loading…
Reference in a new issue