From 13432dbb84e062b09ede90fbe71e772e4e32789b Mon Sep 17 00:00:00 2001 From: Malte Brandy Date: Fri, 26 Jun 2020 19:23:49 +0200 Subject: [PATCH] Fix error --- overlays/testing.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/overlays/testing.nix b/overlays/testing.nix index e1e2756c..385a1bfe 100644 --- a/overlays/testing.nix +++ b/overlays/testing.nix @@ -11,12 +11,13 @@ let main = do (configDir:hostname:args) <- getArgs paths <- myNixPath $ toText configDir - say [i|Trying to build ${name} config for #{hostname} ...|] let command = ${commandline} bracket - (decodeUtf8 <$> ((mktemp |> captureTrim) :: IO ByteString)) + (decodeUtf8 <$> (mktemp |> captureTrim)) rm - (\logFile -> onException (command &> Append logFile &!> Append logFile) (cat logFile)) + (\logFile -> do + say [i|Trying to build ${name} config for #{hostname}. Logging to #{logFile}.|] + onException (command &> Append logFile &!> Append logFile) (cat logFile)) say [i|Build of ${name} config for #{hostname} was successful.|] ''; in {