Skip to content

Commit

Permalink
Hide unrecognized field warnings for default stack-setup-2.yaml (#1040)
Browse files Browse the repository at this point in the history
  • Loading branch information
borsboom committed Sep 25, 2015
1 parent fe880a0 commit 42bb3b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Stack/Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,7 @@ getSetupInfo sopts manager = do
loadSetupInfo
(SetupInfoFileOrURL (soptsStackSetupYaml sopts) :
configSetupInfoLocations config)
return
(mconcat setupInfos)
return (mconcat setupInfos)
where
loadSetupInfo (SetupInfoInline si) = return si
loadSetupInfo (SetupInfoFileOrURL urlOrFile) = do
Expand All @@ -548,7 +547,8 @@ getSetupInfo sopts manager = do
return $ S8.concat bss
Nothing -> liftIO $ S.readFile urlOrFile
(si,warnings) <- either throwM return (Yaml.decodeEither' bs)
logJSONWarnings urlOrFile warnings
when (urlOrFile /= defaultStackSetupYaml) $
logJSONWarnings urlOrFile warnings
return si

data Tool
Expand Down

0 comments on commit 42bb3b3

Please sign in to comment.