Skip to content

Commit f5ad88e

Browse files
top-level/aliases: abort evaluation on check error (#427737)
2 parents f163dc1 + e98d150 commit f5ad88e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkgs/top-level/aliases.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ let
208208
# Make sure that we are not shadowing something from all-packages.nix.
209209
checkInPkgs =
210210
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;
212212

213213
mapAliases =
214214
aliases: lib.mapAttrs (n: alias: removeRecurseForDerivations (checkInPkgs n alias)) aliases;

0 commit comments

Comments
 (0)