mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
eval-release.nix: Handle exceptions properly
This commit is contained in:
parent
bb6db816fe
commit
0731cd042c
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
with import ../../pkgs/lib;
|
with import ../../pkgs/lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
trace = if (builtins.getEnv "VERBOSE") == "1" then builtins.trace else (x: y: y);
|
trace = if builtins.getEnv "VERBOSE" == "1" then builtins.trace else (x: y: y);
|
||||||
|
|
||||||
rel = removeAttrs (import ../../pkgs/top-level/release.nix) [ "tarball" "xbursttools" ];
|
rel = removeAttrs (import ../../pkgs/top-level/release.nix) [ "tarball" "xbursttools" ];
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ let
|
||||||
|
|
||||||
strictAttrs = as: seqList (attrValues as) as;
|
strictAttrs = as: seqList (attrValues as) as;
|
||||||
|
|
||||||
maybe = as: let y = builtins.tryEval (strictAttrs as); in if y.success then y.value else builtins.trace "FAIL" null;
|
maybe = as: let y = builtins.tryEval (strictAttrs as); in if y.success then y.value else builtins.trace "FAIL" {};
|
||||||
|
|
||||||
call = attrs: flip mapAttrs attrs
|
call = attrs: flip mapAttrs attrs
|
||||||
(n: v: trace n (
|
(n: v: trace n (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue