From 83f1e8ab1660418562c68a12e08d8337b97f378e Mon Sep 17 00:00:00 2001 From: Joshua Simmons Date: Tue, 15 Aug 2017 23:46:58 -0700 Subject: [PATCH] add some help for a confusing error when you have no LICENSE file fixes #2500 --- src/Stack/Types/Build.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Stack/Types/Build.hs b/src/Stack/Types/Build.hs index 4384a6cb05..9e73b9557c 100644 --- a/src/Stack/Types/Build.hs +++ b/src/Stack/Types/Build.hs @@ -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."]