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 Content
|
||||||
import Utility
|
import Utility
|
||||||
import RsyncFile
|
import RsyncFile
|
||||||
|
import Messages
|
||||||
|
|
||||||
command :: [Command]
|
command :: [Command]
|
||||||
command = [repoCommand "sendkey" paramKey seek
|
command = [repoCommand "sendkey" paramKey seek
|
||||||
|
@ -30,4 +31,5 @@ start key = do
|
||||||
let file = gitAnnexLocation g key
|
let file = gitAnnexLocation g key
|
||||||
whenM (inAnnex key) $
|
whenM (inAnnex key) $
|
||||||
liftIO $ rsyncServerSend file -- does not return
|
liftIO $ rsyncServerSend file -- does not return
|
||||||
|
warning "requested key is not present"
|
||||||
liftIO exitFailure
|
liftIO exitFailure
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue