diff options
author | Joey Hess <joey@kitenet.net> | 2013-03-04 23:27:18 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-03-04 23:27:18 -0400 |
commit | 6f4e0fa4a08b5abccbbfd363892f084faa6a2c39 (patch) | |
tree | 109b7f0b60c7951120d5391ec4eb9b4ec69d2ba9 /Messages.hs | |
parent | 5123a1a83aa3b954fe67629508bab5ccea0e4148 (diff) |
print a warning message when garbage is received from configlist
Diffstat (limited to 'Messages.hs')
-rw-r--r-- | Messages.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Messages.hs b/Messages.hs index 63c628108..d79c91aa0 100644 --- a/Messages.hs +++ b/Messages.hs @@ -23,6 +23,7 @@ module Messages ( showEndResult, showErr, warning, + warningIO, fileNotFound, indent, maybeShowJSON, @@ -158,6 +159,12 @@ warning' w = do hFlush stdout hPutStrLn stderr w +warningIO :: String -> IO () +warningIO w = do + putStr "\n" + hFlush stdout + hPutStrLn stderr w + {- Displays a warning one time about a file the user specified not existing. -} fileNotFound :: FilePath -> Annex () fileNotFound file = do |