summaryrefslogtreecommitdiff
path: root/Version.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Version.hs')
-rw-r--r--Version.hs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Version.hs b/Version.hs
index 7e7a4c7ce..7e6910fbe 100644
--- a/Version.hs
+++ b/Version.hs
@@ -43,8 +43,7 @@ checkVersion :: Annex ()
checkVersion = getVersion >>= handle
where
handle Nothing = error "First run: git-annex init"
- handle (Just v) = do
- unless (v `elem` supportedVersions) $ do
+ handle (Just v) = unless (v `elem` supportedVersions) $
error $ "Repository version " ++ v ++
" is not supported. " ++
msg v