summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-12-11 14:01:33 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-12-11 14:01:33 -0400
commitde3ec5d3f3a8da71547a221d84c974b4116bbb23 (patch)
tree5eab9afb31011e1e81eb82b8371865f717f4b8c7
parentf11d364188d3b1d59334771a2054c3972d5e0911 (diff)
add ERROR
-rw-r--r--doc/design/external_special_remote_protocol.mdwn9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/design/external_special_remote_protocol.mdwn b/doc/design/external_special_remote_protocol.mdwn
index d244e2b74..f25a03012 100644
--- a/doc/design/external_special_remote_protocol.mdwn
+++ b/doc/design/external_special_remote_protocol.mdwn
@@ -75,6 +75,11 @@ git-annex.
* `VERSION Int`
Supported protocol version. Current version is 0. Must be sent first
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`
Indicates the transfer completed successfully.
* `TRANSFER-FAILURE STORE|RETRIEVE Key ErrorMsg`
@@ -161,6 +166,10 @@ while read line; do
# XXX remove key here
send REMOVE-SUCCESS "$key"
;;
+ *)
+ send ERROR "unknown command received: $line"
+ exit 1
+ ;;
esac
done
"""]]