New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1816 - give more descriptive errors when .cabal file cannot be found #1824

Merged
merged 2 commits into from Apr 27, 2014

Conversation

Projects
None yet
2 participants
@owst

owst commented Apr 27, 2014

This will give better errors when a .cabal file cannot be found when:

  • Adding a source dep,
  • Building existing source deps,
  • Creating package index,
  • Installing user specified local pkgs.

The first patch is a simple tidy-up: removing some inline, repeated strings, and manual layout formatting.

owst added some commits Apr 27, 2014

IndexCache: use key variables instead of inline strings
Avoid inline strings and manual spacing - use already-declared key variables
and unwords
More descriptive errors when .cabal file is missing
Particularly when dealing with add-source dependencies, it is useful to know
in which directory cabal can't find a .cabal file, see:
#1816

Errors are also improved when installing local packages, e.g. `cabal install
another/directory`.

23Skidoo added a commit that referenced this pull request Apr 27, 2014

Merge pull request #1824 from owst/master
Fix #1816 - give more descriptive errors when .cabal file cannot be found

@23Skidoo 23Skidoo merged commit 84a7680 into haskell:master Apr 27, 2014

1 check was pending

continuous-integration/travis-ci The Travis CI build is in progress
Details
@23Skidoo

This comment has been minimized.

Member

23Skidoo commented Apr 27, 2014

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment