|
@@ -52,15 +52,15 @@ func init() {
|
|
|
errors = make(map[int]string)
|
|
errors = make(map[int]string)
|
|
|
|
|
|
|
|
// command related errors
|
|
// command related errors
|
|
|
- errors[EcodeKeyNotFound] = "Key Not Found"
|
|
|
|
|
- errors[EcodeTestFailed] = "Test Failed" //test and set
|
|
|
|
|
- errors[EcodeNotFile] = "Not A File"
|
|
|
|
|
|
|
+ errors[EcodeKeyNotFound] = "Key not found"
|
|
|
|
|
+ errors[EcodeTestFailed] = "Compare failed" //test and set
|
|
|
|
|
+ errors[EcodeNotFile] = "Not a file"
|
|
|
errors[EcodeNoMorePeer] = "Reached the max number of peers in the cluster"
|
|
errors[EcodeNoMorePeer] = "Reached the max number of peers in the cluster"
|
|
|
- errors[EcodeNotDir] = "Not A Directory"
|
|
|
|
|
- errors[EcodeNodeExist] = "Already exists" // create
|
|
|
|
|
|
|
+ errors[EcodeNotDir] = "Not a directory"
|
|
|
|
|
+ errors[EcodeNodeExist] = "Key already exists" // create
|
|
|
errors[EcodeRootROnly] = "Root is read only"
|
|
errors[EcodeRootROnly] = "Root is read only"
|
|
|
errors[EcodeKeyIsPreserved] = "The prefix of given key is a keyword in etcd"
|
|
errors[EcodeKeyIsPreserved] = "The prefix of given key is a keyword in etcd"
|
|
|
- errors[EcodeDirNotEmpty] = "The directory is not empty"
|
|
|
|
|
|
|
+ errors[EcodeDirNotEmpty] = "Directory not empty"
|
|
|
|
|
|
|
|
// Post form related errors
|
|
// Post form related errors
|
|
|
errors[EcodeValueRequired] = "Value is Required in POST form"
|
|
errors[EcodeValueRequired] = "Value is Required in POST form"
|