diff options
author | Joey Hess <joey@kitenet.net> | 2011-03-23 02:42:14 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-03-23 02:42:14 -0400 |
commit | 04539d16718265441c607da08d3e27d959f749c6 (patch) | |
tree | 4ea03b71718bb17383e8ecc46a394fd904691b29 /Backend.hs | |
parent | cd1cb526522029cbc9c6c8fe396da1685bfb603b (diff) |
improve size change display
Diffstat (limited to 'Backend.hs')
-rw-r--r-- | Backend.hs | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/Backend.hs b/Backend.hs index fe61739e8..0ee56d262 100644 --- a/Backend.hs +++ b/Backend.hs @@ -192,15 +192,7 @@ checkKeySize key = do then return True else do dest <- moveBad key - warning $ badsizeNote dest size size' + warning $ "Bad file size (" ++ + compareSizes True size size' ++ + "); moved to " ++ dest return False - -badsizeNote :: FilePath -> Integer -> Integer -> String -badsizeNote dest expected got = "Bad file size (" ++ aside ++ "); moved to " ++ dest - where - expected' = roughSize True expected - got' = roughSize True got - aside = - if expected' == got' - then show got ++ " not " ++ show expected - else got' ++ " not " ++ expected' |