From 9533612afb2396106f9aafb5ae484dc393025467 Mon Sep 17 00:00:00 2001 From: Malte Brandy Date: Fri, 26 Jun 2020 19:45:59 +0200 Subject: [PATCH] Fix error --- overlays/testing.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/overlays/testing.nix b/overlays/testing.nix index dbda31f7..fa0f1fb1 100644 --- a/overlays/testing.nix +++ b/overlays/testing.nix @@ -12,13 +12,12 @@ let (configDir:hostname:args) <- getArgs paths <- myNixPath $ toText configDir logFile <- mktemp |> captureTrim - \logFile -> do - let command = (${commandline}) &!> StdOut &> Append logFile - failHandler = do - say [i|### Build failure for ${name} config for #{hostname} ###|] - cat logFile - say [i|Trying to build ${name} config for #{hostname}. Logging to #{logFile}.|] - onException command failHandler + let command = (${commandline}) &!> StdOut &> Append logFile + failHandler = do + say [i|### Build failure for ${name} config for #{hostname} ###|] + cat logFile + say [i|Trying to build ${name} config for #{hostname}. Logging to #{logFile}.|] + onException command failHandler say [i|Build of ${name} config for #{hostname} was successful.|] ''; in {