summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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