From 0ce6ba9fbb687ad9e5ce057859cece6d0dd9d62a Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Sun, 26 May 2019 17:00:38 +1000 Subject: [PATCH] Improve error message for 'new-test' command Suggest adding '--enable-tests'. [ci skip] --- cabal-install/Distribution/Client/CmdErrorMessages.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cabal-install/Distribution/Client/CmdErrorMessages.hs b/cabal-install/Distribution/Client/CmdErrorMessages.hs index 6285e26637d..6d15652190c 100644 --- a/cabal-install/Distribution/Client/CmdErrorMessages.hs +++ b/cabal-install/Distribution/Client/CmdErrorMessages.hs @@ -305,6 +305,8 @@ renderTargetProblemNoneEnabled verb targetSelector targets = ++ plural (listPlural targets') " is " " are " ++ "not available because the solver did not find a plan that " ++ "included the " ++ renderOptionalStanza Plural stanza + ++ ". Force the solver to enable this for all packages by adding the " + ++ "line 'tests: True' to the 'cabal.project.local' file." (TargetNotBuildable, _) -> renderListCommaAnd [ "the " ++ showComponentName availableTargetComponentName