Browse Source

Merge pull request #10036 from louis-paul/clientv3-error-handling-godoc

clientv3/doc: Update error handling godoc
Sam Batschelet 7 years ago
parent
commit
9ecc727dc8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      clientv3/doc.go

+ 2 - 2
clientv3/doc.go

@@ -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 is not provided
 //		} 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
 //		}