top-level/aliases: abort evaluation on check error (#427737)

authored by Wolfgang Walther and committed by GitHub f5ad88e0 f163dc16

+1 -1
+1 -1
pkgs/top-level/aliases.nix
··· 208 208 # Make sure that we are not shadowing something from all-packages.nix. 209 209 checkInPkgs = 210 210 n: alias: 211 - if builtins.hasAttr n super then throw "Alias ${n} is still in all-packages.nix" else alias; 211 + if builtins.hasAttr n super then abort "Alias ${n} is still in all-packages.nix" else alias; 212 212 213 213 mapAliases = 214 214 aliases: lib.mapAttrs (n: alias: removeRecurseForDerivations (checkInPkgs n alias)) aliases;