better message

This commit is contained in:
Joey Hess 2012-10-11 12:14:23 -04:00
parent eca1629ce2
commit bbf2c31aa7

View file

@ -59,7 +59,7 @@ start' allowauto = notBareRepo $ do
| allowauto = liftIO startNoRepo
| otherwise = do
d <- liftIO getCurrentDirectory
error $ "no repository for " ++ d
error $ "no git repository in " ++ d
checkpid = do
pidfile <- fromRepo gitAnnexPidFile
liftIO $ isJust <$> checkDaemon pidfile