mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-23 17:31:55 +01:00
Recover from Hoogle creation errors
This commit is contained in:
parent
daacf64bb9
commit
42f4f7e586
@ -716,7 +716,9 @@ buildAndUploadHoogleDB doNotUpload = do
|
|||||||
void $ checkInsertSnapshotHoogleDb True snapshotId
|
void $ checkInsertSnapshotHoogleDb True snapshotId
|
||||||
Nothing -> do
|
Nothing -> do
|
||||||
logInfo $ "Current hoogle database does not yet exist for: " <> display snapName
|
logInfo $ "Current hoogle database does not yet exist for: " <> display snapName
|
||||||
mfp' <- createHoogleDB snapshotId snapName
|
mfp' <- createHoogleDB snapshotId snapName `catchAny` \e -> do
|
||||||
|
logError $ displayShow e
|
||||||
|
pure Nothing
|
||||||
forM_ mfp' $ \fp -> do
|
forM_ mfp' $ \fp -> do
|
||||||
let key = hoogleKey snapName
|
let key = hoogleKey snapName
|
||||||
dest = T.unpack key
|
dest = T.unpack key
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user