Commit ae2618f1 authored by Valentin Reis's avatar Valentin Reis

build failure proper report.

parent c0d05db8
Pipeline #5885 passed with stages
in 27 seconds
......@@ -419,8 +419,9 @@ wrap nixCommand target sa@ArgsCommon {..} = do
(P.proc (toS nixc) $ fmap toS arglist)
)
>>= \case
ExitSuccess -> copySuccess "/tmp/papa"
ExitFailure _ -> copyFailure $ toS tmpXDGHOME
ExitSuccess -> copySuccess "/tmp/papa"
ExitFailure _ ->
copyFailure (toS tmpXDGHOME) >> die "build failed."
where
copySuccess source =
runProcessVerbose verbosity "cp" ["-r", source, "./result"] []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment