summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-03-23 10:52:40 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-03-23 10:52:40 -0400
commitb0eccb003ae70792e89eda54d0c0bea1f38847ba (patch)
treeed62c8eec2401df1b7ada058d5de916b4faa7e91
parent04539d16718265441c607da08d3e27d959f749c6 (diff)
improve free space needed display
-rw-r--r--Content.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Content.hs b/Content.hs
index 2a3106c10..bc43e4b44 100644
--- a/Content.hs
+++ b/Content.hs
@@ -129,9 +129,9 @@ checkDiskSpace' adjustment key = do
(_, Nothing) -> return ()
(Just (FileSystemStats { fsStatBytesAvailable = have }), Just need) ->
if (need + reserve > have + adjustment)
- then error $ "not enough free space (have " ++
- roughSize True (have + adjustment) ++ "; need " ++
- roughSize True (need + reserve) ++ ")"
+ then error $ "not enough free space, need " ++
+ roughSize True (need + reserve - have - adjustment) ++
+ " more"
else return ()
where
megabyte :: Integer