[Git][ghc/ghc][master] hadrian: better error for failing to find file's dependencies

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Tue Sep 26 19:26:25 UTC 2023



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
6a896ce8 by Teo Camarasu at 2023-09-26T15:25:39-04:00
hadrian: better error for failing to find file's dependencies

Resolves #24004

- - - - -


1 changed file:

- hadrian/src/Hadrian/Oracles/TextFile.hs


Changes:

=====================================
hadrian/src/Hadrian/Oracles/TextFile.hs
=====================================
@@ -82,8 +82,8 @@ lookupDependencies depFile file = do
           | otherwise            = 1
     deps <- fmap (sortOn weigh) <$> lookupValues depFile file
     case deps of
-        Nothing -> error $ "No dependencies found for file " ++ quote file
-        Just [] -> error $ "No source file found for file " ++ quote file
+        Nothing -> error $ "No dependencies found for file " ++ quote file ++ " in " ++ quote depFile
+        Just [] -> error $ "No source file found for file " ++ quote file ++ " in " ++ quote depFile
         Just (source : files) -> return (source, files)
 
 -- | Parse a target from a text file, tracking the result. The file is expected



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6a896ce88ec2a8840e28141a8e40334438058869

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6a896ce88ec2a8840e28141a8e40334438058869
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230926/a897d488/attachment.html>


More information about the ghc-commits mailing list