improve error message
checkCanAdd can be called on annexed files too, when youtube-dl is in use.
This commit is contained in:
parent
bbedc1c265
commit
7c88633121
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue