mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-11 19:58:28 +01:00
Error out on no packages
This commit is contained in:
parent
c8c8b971ce
commit
f8aa5bc4de
@ -164,6 +164,8 @@ createHoogleDB db man name = handleAny (\e -> print e $> Nothing) $ do
|
||||
$ sourceTarFile False tarFP
|
||||
$$ foldMapMC (liftIO . singleDB db name tmpdir)
|
||||
|
||||
when (null allPackagePairs) $ error $ "No Hoogle .txt files found for " ++ unpack (toPathPiece name)
|
||||
|
||||
stackDir <- getAppUserDataDirectory "stack"
|
||||
let indexTar = stackDir </> "indices" </> "Hackage" </> "00-index.tar"
|
||||
withBinaryFile indexTar ReadMode $ \h -> do
|
||||
|
||||
Loading…
Reference in New Issue
Block a user