diff options
author | Joey Hess <joey@kitenet.net> | 2014-09-11 13:36:28 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-09-11 13:36:28 -0400 |
commit | b0a86d81a39f25f2e57b0e4fd564acc70cbdf850 (patch) | |
tree | fca828650876bfe16d6ef24cb0f2a516e1c390d9 /Messages.hs | |
parent | de679a571cc4f8bf6a320222697e40900fd962cf (diff) |
Promote file not found warning message to an error.
Diffstat (limited to 'Messages.hs')
-rw-r--r-- | Messages.hs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Messages.hs b/Messages.hs index f27755f3a..3ffa14814 100644 --- a/Messages.hs +++ b/Messages.hs @@ -25,7 +25,6 @@ module Messages ( showErr, warning, warningIO, - fileNotFound, indent, maybeShowJSON, showFullJSON, @@ -45,7 +44,6 @@ import System.Log.Logger import System.Log.Formatter import System.Log.Handler (setFormatter, LogHandler) import System.Log.Handler.Simple -import qualified Data.Set as S import Common hiding (handle) import Types @@ -172,18 +170,6 @@ warningIO w = do hFlush stdout hPutStrLn stderr w -{- Displays a warning one time about a file the user specified not existing. -} -fileNotFound :: FilePath -> Annex () -fileNotFound file = do - st <- Annex.getState Annex.output - let shown = fileNotFoundShown st - when (S.notMember file shown) $ do - let shown' = S.insert file shown - let st' = st { fileNotFoundShown = shown' } - Annex.changeState $ \s -> s { Annex.output = st' } - liftIO $ hPutStrLn stderr $ unwords - [ "git-annex:", file, "not found" ] - indent :: String -> String indent = intercalate "\n" . map (\l -> " " ++ l) . lines |