Merge pull request #292941 from adisbladis/lib-getattrfrompath-env
lib.getAttrFromPath: Don't use errorMessage variable
This commit is contained in:
commit
012faf046f
|
@ -216,8 +216,7 @@ rec {
|
||||||
attrPath:
|
attrPath:
|
||||||
# The nested attribute set to find the value in.
|
# The nested attribute set to find the value in.
|
||||||
set:
|
set:
|
||||||
let errorMsg = "cannot find attribute `" + concatStringsSep "." attrPath + "'";
|
attrByPath attrPath (abort ("cannot find attribute `" + concatStringsSep "." attrPath + "'")) set;
|
||||||
in attrByPath attrPath (abort errorMsg) set;
|
|
||||||
|
|
||||||
/* Map each attribute in the given set and merge them into a new attribute set.
|
/* Map each attribute in the given set and merge them into a new attribute set.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user