add ERROR
This commit is contained in:
parent
6c6c86f83a
commit
22c6fe501d
1 changed files with 9 additions and 0 deletions
|
@ -75,6 +75,11 @@ git-annex.
|
||||||
* `VERSION Int`
|
* `VERSION Int`
|
||||||
Supported protocol version. Current version is 0. Must be sent first
|
Supported protocol version. Current version is 0. Must be sent first
|
||||||
thing at starup.
|
thing at starup.
|
||||||
|
* `ERROR ErrorMsg`
|
||||||
|
Generic error. Can be sent at any time if things get messed up.
|
||||||
|
It would be a good idea to send this if git-annex sends a command
|
||||||
|
you do not support. The program should exit after sending this, as
|
||||||
|
git-annex will not talk to it any further.
|
||||||
* `TRANSFER-SUCCESS STORE|RETRIEVE Key`
|
* `TRANSFER-SUCCESS STORE|RETRIEVE Key`
|
||||||
Indicates the transfer completed successfully.
|
Indicates the transfer completed successfully.
|
||||||
* `TRANSFER-FAILURE STORE|RETRIEVE Key ErrorMsg`
|
* `TRANSFER-FAILURE STORE|RETRIEVE Key ErrorMsg`
|
||||||
|
@ -161,6 +166,10 @@ while read line; do
|
||||||
# XXX remove key here
|
# XXX remove key here
|
||||||
send REMOVE-SUCCESS "$key"
|
send REMOVE-SUCCESS "$key"
|
||||||
;;
|
;;
|
||||||
|
*)
|
||||||
|
send ERROR "unknown command received: $line"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
"""]]
|
"""]]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue