Skip to content

Commit 69f6f9d

Browse files
committed
Print default installdir as part of warning.
1 parent 7dcc865 commit 69f6f9d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cabal-install/Distribution/Client/CmdInstall.hs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -658,12 +658,13 @@ installExes verbosity baseCtx buildCtx platform compiler
658658

659659
mkFinalExeName :: UnqualComponentName -> FilePath
660660
mkFinalExeName exe = prefix <> unUnqualComponentName exe <> suffix <.> exeExtension platform
661-
installdirUnknown =
661+
installdirUnknown path =
662662
"installdir is not defined. Set it in your cabal config file "
663-
++ "or use --installdir=<path>. Using default installdir."
663+
++ "or use --installdir=<path>. Using default installdir: " ++ show path
664664

665665
installdir <- fromFlagOrDefault
666-
(warn verbosity installdirUnknown >> pure installPath) $
666+
(warn verbosity (installdirUnknown installPath)
667+
>> pure installPath) $
667668
pure <$> cinstInstalldir clientInstallFlags
668669
createDirectoryIfMissingVerbose verbosity False installdir
669670
warnIfNoExes verbosity buildCtx

0 commit comments

Comments
 (0)