From b0a86d81a39f25f2e57b0e4fd564acc70cbdf850 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 11 Sep 2014 13:36:28 -0400 Subject: Promote file not found warning message to an error. --- Messages.hs | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'Messages.hs') 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 -- cgit v1.2.3