aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-04-01 21:24:06 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-04-01 21:24:06 -0400
commit6ab63c438d3628dbcad201f775a18f4b6c8e758f (patch)
tree9e8f9d6488ede1f5733a19988d28b8ea652a1599
parentdd5591781db3d47123c51ad5935c651f6a8ecf86 (diff)
not really a bug
This can occur if a local remote repo has not been initted, so has no uuid yet.
-rw-r--r--LocationLog.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/LocationLog.hs b/LocationLog.hs
index f1e54432c..d989cad61 100644
--- a/LocationLog.hs
+++ b/LocationLog.hs
@@ -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)