Skip to content

Commit

Permalink
add some help for a confusing error when you have no LICENSE file
Browse files Browse the repository at this point in the history
fixes #2500
  • Loading branch information
kadoban authored and mgsloan committed Aug 18, 2017
1 parent 17ff21d commit 83f1e8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Stack/Types/Build.hs
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ missingExeError isSimpleBuildType msg =
where
possibleCauses =
"No module named \"Main\". The 'main-is' source file should usually have a header indicating that it's a 'Main' module." :
"A cabal file that refers to nonexistent other files (e.g. a license-file that doesn't exist). Running 'cabal check' may point out these issues." :
if isSimpleBuildType
then []
else ["The Setup.hs file is changing the installation target dir."]
Expand Down

0 comments on commit 83f1e8a

Please sign in to comment.