Skip to content

Commit

Permalink
Issue warning when user-file is empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Jun 1, 2016
1 parent a224bd4 commit 40ebda5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Network/Gitit/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ extractConfig cp = do
liftIO $ logM "gitit" WARNING "rpx-domain is not set"
ghConfig <- extractGithubConfig cp

when (null cfUserFile) $
liftIO $ logM "gitit" ERROR "user-file is empty"

return Config{
repositoryPath = cfRepositoryPath
, repositoryType = repotype'
Expand Down

0 comments on commit 40ebda5

Please sign in to comment.