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:
parent
078d1dd0cb
commit
f81c1f10e6
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue