Commit bfc9528d authored by Brent Yorgey's avatar Brent Yorgey
Browse files

add message to 'package not found' error advising to run 'cabal update'. (#497)

parent f022ada2
......@@ -234,7 +234,8 @@ disambiguateDependencies index deps = do
(_, Left name)) <- zip deps names ]
ambigious -> die $ unlines
[ if null matches
then "There is no package named " ++ display name
then "There is no package named " ++ display name ++ ". "
++ "Perhaps you need to run 'cabal update' first?"
else "The package name " ++ display name ++ "is ambigious. "
++ "It could be: " ++ intercalate ", " (map display matches)
| (name, matches) <- ambigious ]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment