mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
feat add dir_flag
This commit is contained in:
@@ -33,6 +33,7 @@ const (
|
||||
EcodeNodeExist = 105
|
||||
EcodeKeyIsPreserved = 106
|
||||
EcodeRootROnly = 107
|
||||
EcodeDirNotEmpty = 108
|
||||
|
||||
EcodeValueRequired = 200
|
||||
EcodePrevValueRequired = 201
|
||||
@@ -59,6 +60,7 @@ func init() {
|
||||
errors[EcodeNodeExist] = "Already exists" // create
|
||||
errors[EcodeRootROnly] = "Root is read only"
|
||||
errors[EcodeKeyIsPreserved] = "The prefix of given key is a keyword in etcd"
|
||||
errors[EcodeDirNotEmpty] = "The directory is not empty"
|
||||
|
||||
// Post form related errors
|
||||
errors[EcodeValueRequired] = "Value is Required in POST form"
|
||||
|
||||
Reference in New Issue
Block a user