mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
fix a copy paste error
This commit is contained in:
parent
8fe8711d8d
commit
78d50fe9d1
4
error.go
4
error.go
@ -11,8 +11,8 @@ type jsonError struct {
|
|||||||
|
|
||||||
func newJsonError(statusCode string, message string) []byte {
|
func newJsonError(statusCode string, message string) []byte {
|
||||||
b, _ := json.Marshal(jsonError{
|
b, _ := json.Marshal(jsonError{
|
||||||
StatusCode: "400",
|
StatusCode: statusCode,
|
||||||
Message: "Set: Value Required",
|
Message: message,
|
||||||
})
|
})
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user