From 7c886331214c9eaf2c2418faaf4aaca6d858ae79 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 30 Nov 2017 15:00:53 -0400 Subject: [PATCH] improve error message checkCanAdd can be called on annexed files too, when youtube-dl is in use. --- Command/AddUrl.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Command/AddUrl.hs b/Command/AddUrl.hs index 43dc40fee1..4d3be3063e 100644 --- a/Command/AddUrl.hs +++ b/Command/AddUrl.hs @@ -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