Skip to content
Snippets Groups Projects
Commit 6a896ce8 authored by Teo Camarasu's avatar Teo Camarasu Committed by Marge Bot
Browse files

hadrian: better error for failing to find file's dependencies

Resolves #24004
parent de142aa2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment