Skip to content

Commit

Permalink
Have script interpreter output error logging #2879
Browse files Browse the repository at this point in the history
  • Loading branch information
mgsloan committed Feb 1, 2017
1 parent 55268fb commit ccd5994
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ Other enhancements:
it will now look for source files in the current work dir.
([#2878](https://github.com/commercialhaskell/stack/issues/2878))
* Bump to hpack 0.17.0 to allow `custom-setup` and `!include "..."` in `package.yaml`.
* The script interpreter will now output error logging. In particular,
this means it will output info about plan construction errors.
([#2879](https://github.com/commercialhaskell/stack/issues/2879))

Bug fixes:

Expand Down
3 changes: 2 additions & 1 deletion src/main/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,8 @@ commandLineHandler progName isInterpreter = complicatedOptions
extraHelpOption hide progName (Docker.dockerCmdName ++ "*") Docker.dockerHelpOptName <*>
extraHelpOption hide progName (Nix.nixCmdName ++ "*") Nix.nixHelpOptName <*>
globalOptsParser kind (if isInterpreter
then Just $ LevelOther "silent"
-- Silent except when errors occur - see #2879
then Just LevelError
else Nothing)
where hide = kind /= OuterGlobalOpts

Expand Down

0 comments on commit ccd5994

Please sign in to comment.