summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-12-31 16:41:40 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2025-12-31 16:42:40 +0100
commitc474b2ffb27af7aa80f53f51caeb85b97c9b3b72 (patch)
treef62d58fd12dae5825a33890cdab61f5a0c0bc8c4 /src
parent314bee95348b04d8f2f95dc558da39dae6505a47 (diff)
Fix build with mtl 2.2HEADmaster
Diffstat (limited to 'src')
-rw-r--r--src/Job.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Job.hs b/src/Job.hs
index 2de0bb6..20e6fd5 100644
--- a/src/Job.hs
+++ b/src/Job.hs
@@ -389,7 +389,7 @@ prepareJob dir job inner = do
checkoutAt subtree $ checkoutPath </> fromMaybe "" dest
liftIO $ forM_ (jobUses job) $ \( jid, aname ) -> do
- modifyError (userError . T.unpack) $ do
+ either (throwError . userError . T.unpack) pure <=< runExceptT $ do
wpath <- getArtifactWorkPath dir jid aname
let target = checkoutPath </> wpath
liftIO $ createDirectoryIfMissing True $ takeDirectory target