improve error message

checkCanAdd can be called on annexed files too, when youtube-dl is in
use.
This commit is contained in:
Joey Hess 2017-11-30 15:00:53 -04:00
parent bbedc1c265
commit 7c88633121
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -429,7 +429,7 @@ adjustFile o = addprefix . addsuffix
checkCanAdd :: FilePath -> Annex (Maybe a) -> Annex (Maybe a)
checkCanAdd file a = ifM (isJust <$> (liftIO $ catchMaybeIO $ getSymbolicLinkStatus file))
( do
warning $ file ++ " already exists and is not annexed; not overwriting"
warning $ file ++ " already exists; not overwriting"
return Nothing
, ifM ((not <$> Annex.getState Annex.force) <&&> checkIgnored file)
( do