clientv3/doc: Update error handling godoc

0c5bcd5d8094ef64e8377753d48c038327a266d6 updated error handling for
`ErrEmptyKey` but missed the godoc.
This commit is contained in:
Louis-Paul Dareau 2018-08-23 13:37:39 +02:00
parent a9fcc82e4d
commit 2ee4525cd2
No known key found for this signature in database
GPG Key ID: DB9C840533295442

View File

@ -71,14 +71,14 @@
// // ctx is canceled by another routine
// } else if err == context.DeadlineExceeded {
// // ctx is attached with a deadline and it exceeded
// } else if err == rpctypes.ErrEmptyKey {
// // client-side error: key argument is empty
// } else if ev, ok := status.FromError(err); ok {
// code := ev.Code()
// if code == codes.DeadlineExceeded {
// // server-side context might have timed-out first (due to clock skew)
// // while original client-side context is not timed-out yet
// }
// } else if verr, ok := err.(*v3rpc.ErrEmptyKey); ok {
// // process (verr.Errors)
// } else {
// // bad cluster endpoints, which are not etcd servers
// }