coreos/etcd — pull request #504 by kelseyhightower (2014-01-23 07:11:07+00:00)
Title: Better error message when setting values on directories

Without this commit etcd returns the following error message when
setting values on directories:

{
"errorCode":102,
"message":"Not a file",
"cause":"/postgres",
"index":2
}

While the above error message is accurate it's not very descriptive.
This commit adds a new error code/message which better describes why the
write operation failed. etcd now returns the following:

{
"errorCode":109,
"message":"Cannot set value on directory",
"cause":"/postgres",
"index":2
}