Skip to content

Commit

Permalink
Switch to logError #3007
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Feb 15, 2017
1 parent 983b199 commit 38473e7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Stack/Script.hs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,12 @@ scriptCmd opts go' = do
}
withBuildConfigAndLock go $ \lk -> do
-- Some warnings in case the user somehow tries to set a
-- stack.yaml location
-- stack.yaml location. Note that in this functions we use
-- logError instead of logWarn because, when using the
-- interpreter mode, only error messages are shown. See:
-- https://github.com/commercialhaskell/stack/issues/3007
case globalStackYaml go' of
SYLOverride fp -> $logWarn $ T.pack
SYLOverride fp -> $logError $ T.pack
$ "Ignoring override stack.yaml file for script command: " ++ fp
SYLDefault -> return ()
SYLNoConfig -> assert False (return ())
Expand All @@ -65,7 +68,7 @@ scriptCmd opts go' = do
(targetsSet, coresSet) <-
case soPackages opts of
[] -> do
$logWarn "No packages provided, using experimental import parser"
$logError "No packages provided, using experimental import parser"
getPackagesFromImports (globalResolver go) (soFile opts)
packages -> do
let targets = concatMap wordsComma packages
Expand Down

0 comments on commit 38473e7

Please sign in to comment.