From 0731cd042cba0a3176e52f5c0453e79a70338009 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 14 Jan 2013 23:28:18 +0100 Subject: eval-release.nix: Handle exceptions properly --- maintainers/scripts/eval-release.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'maintainers/scripts') diff --git a/maintainers/scripts/eval-release.nix b/maintainers/scripts/eval-release.nix index 7af2b5b5bd92..ccbe064ee321 100644 --- a/maintainers/scripts/eval-release.nix +++ b/maintainers/scripts/eval-release.nix @@ -5,7 +5,7 @@ with import ../../pkgs/lib; 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" ]; @@ -13,7 +13,7 @@ let 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 (n: v: trace n ( -- cgit 1.4.1