etcdserver: refine error handling in publish