show a warning message when failing to find requested key

Otherwise, the user sees only a rsync protocol error message and then
git-annex's less specific failure message.
This commit is contained in:
Joey Hess 2011-05-22 14:03:06 -04:00
parent 078d1dd0cb
commit f81c1f10e6

View file

@ -16,6 +16,7 @@ import Command
import Content
import Utility
import RsyncFile
import Messages
command :: [Command]
command = [repoCommand "sendkey" paramKey seek
@ -30,4 +31,5 @@ start key = do
let file = gitAnnexLocation g key
whenM (inAnnex key) $
liftIO $ rsyncServerSend file -- does not return
warning "requested key is not present"
liftIO exitFailure