not really a bug

This can occur if a local remote repo has not been initted, so has no uuid
yet.
This commit is contained in:
Joey Hess 2011-04-01 21:24:06 -04:00
parent dd5591781d
commit 6ab63c438d

View file

@ -90,7 +90,8 @@ instance Read LogLine where
logChange :: Git.Repo -> Key -> UUID -> LogStatus -> IO FilePath
logChange repo key u s = do
when (null u) $
error $ "bug detected: unknown UUID for " ++ Git.repoDescribe repo
error $ "unknown UUID for " ++ Git.repoDescribe repo ++
" (have you run git annex init there?)"
line <- logNow s u
ls <- readLog logfile
writeLog logfile (compactLog $ line:ls)