diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-11-30 15:00:53 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-11-30 15:00:53 -0400 |
commit | af48134f09a3a1f3b55fb8c8b8ba3584cfc56505 (patch) | |
tree | 423cac6e1a38dfe905e626a350d210407efe404b /Command | |
parent | f60688147594c2d7ba323aa29620166b96c371d1 (diff) |
improve error message
checkCanAdd can be called on annexed files too, when youtube-dl is in
use.
Diffstat (limited to 'Command')
-rw-r--r-- | Command/AddUrl.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Command/AddUrl.hs b/Command/AddUrl.hs index 43dc40fee..4d3be3063 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 |