diff options
author | Joey Hess <joey@kitenet.net> | 2010-11-15 18:37:49 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-11-15 18:37:49 -0400 |
commit | 0893820812c9cc10287c861dccbdae3c287cd7cf (patch) | |
tree | 3d3216d68f805d84ce423244273fee8f4e8353a3 /Backend | |
parent | a5e7f5329f4d9a80a34302e3707f0bd42b91a441 (diff) |
fsck: Print warnings to stderr; --quiet can now be used to only see problems.
Diffstat (limited to 'Backend')
-rw-r--r-- | Backend/File.hs | 4 | ||||
-rw-r--r-- | Backend/SHA1.hs | 2 | ||||
-rw-r--r-- | Backend/WORM.hs | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Backend/File.hs b/Backend/File.hs index 835177856..c67fb3ce3 100644 --- a/Backend/File.hs +++ b/Backend/File.hs @@ -175,12 +175,12 @@ checkKeyNumCopies key = do let present = length remotes + if inannex then 1 else 0 if (present < needed) then do - showLongNote $ note present needed + warning $ note present needed return False else return True where note 0 _ = "** No known copies of the file exist!" note present needed = "Only " ++ show present ++ " of " ++ show needed ++ - " copies exist. " ++ + " copies of "++show key++" exist. " ++ "Run git annex get somewhere else to back it up." diff --git a/Backend/SHA1.hs b/Backend/SHA1.hs index 9e9000ba9..46667c9cd 100644 --- a/Backend/SHA1.hs +++ b/Backend/SHA1.hs @@ -57,5 +57,5 @@ checkKeySHA1 key = do then return True else do dest <- moveBad key - showLongNote $ "Bad file content; moved to "++dest + warning $ "Bad file content; moved to "++dest return False diff --git a/Backend/WORM.hs b/Backend/WORM.hs index 374989996..4e2177fed 100644 --- a/Backend/WORM.hs +++ b/Backend/WORM.hs @@ -66,5 +66,5 @@ checkKeySize key = do then return True else do dest <- moveBad key - showLongNote $ "Bad file size; moved to "++dest + warning $ "Bad file size; moved to "++dest return False |